fixed typo.
authorRodrigo Moya <rodrigo@ximian.com>
Fri, 12 Dec 2003 16:48:57 +0000 (16:48 +0000)
committerRodrigo Moya <rodrigo@src.gnome.org>
Fri, 12 Dec 2003 16:48:57 +0000 (16:48 +0000)
2003-12-12  Rodrigo Moya <rodrigo@ximian.com>

* backends/groupwise/e-gw-message.c (setup_debug): fixed typo.

calendar/ChangeLog
calendar/backends/groupwise/e-gw-message.c
servers/groupwise/e-gw-message.c

index 6590685..d0ccc62 100644 (file)
@@ -1,5 +1,7 @@
 2003-12-12  Rodrigo Moya <rodrigo@ximian.com>
 
+       * backends/groupwise/e-gw-message.c (setup_debug): fixed typo.
+
        * backends/groupwise/Makefile.am: use $DEBUG_CFLAGS.
 
 2003-12-12  Rodrigo Moya <rodrigo@ximian.com>
index 4d22ecf..bfdb713 100644 (file)
@@ -67,11 +67,6 @@ setup_debug (SoupSoapMessage *msg)
        print_header ("Host", suri->host, NULL);
        soup_message_foreach_header (SOUP_MESSAGE (msg)->request_headers, print_header, NULL);
 
-       /* print request's body */
-       fputc ('\n', stdout);
-       fwrite (SOUP_MESSAGE (msg)->request.body, 1, SOUP_MESSAGE (msg)->request.length, stdout);
-       fputc ('\n', stdout);
-
        soup_message_add_handler (SOUP_MESSAGE (msg), SOUP_HANDLER_POST_BODY, debug_handler, NULL);
 }
 
@@ -88,13 +83,13 @@ e_gw_message_new_with_header (const char *uri, const char *method_name)
                return NULL;
        }
 
+       soup_message_add_header (SOUP_MESSAGE (msg)->request_headers, "User-Agent",
+                                "Evolution/" VERSION);
+
 #ifdef G_ENABLE_DEBUG
        setup_debug (msg);
 #endif
 
-       soup_message_add_header (SOUP_MESSAGE (msg)->request_headers, "User-Agent",
-                                "Evolution/" VERSION);
-
        soup_soap_message_start_envelope (msg);
        soup_soap_message_start_body (msg);
        soup_soap_message_add_attribute (msg, "encodingStyle", "", "SOAP-ENV", NULL);
@@ -118,4 +113,12 @@ e_gw_message_write_footer (SoupSoapMessage *msg)
        soup_soap_message_end_element (msg);
        soup_soap_message_end_body (msg);
        soup_soap_message_end_envelope (msg);
+
+#ifdef G_ENABLE_DEBUG
+       /* print request's body */
+       fputc ('\n', stdout);
+       fwrite (SOUP_MESSAGE (msg)->request.body, 1, SOUP_MESSAGE (msg)->request.length, stdout);
+       fputc ('\n', stdout);
+#endif
+
 }
index 4d22ecf..bfdb713 100644 (file)
@@ -67,11 +67,6 @@ setup_debug (SoupSoapMessage *msg)
        print_header ("Host", suri->host, NULL);
        soup_message_foreach_header (SOUP_MESSAGE (msg)->request_headers, print_header, NULL);
 
-       /* print request's body */
-       fputc ('\n', stdout);
-       fwrite (SOUP_MESSAGE (msg)->request.body, 1, SOUP_MESSAGE (msg)->request.length, stdout);
-       fputc ('\n', stdout);
-
        soup_message_add_handler (SOUP_MESSAGE (msg), SOUP_HANDLER_POST_BODY, debug_handler, NULL);
 }
 
@@ -88,13 +83,13 @@ e_gw_message_new_with_header (const char *uri, const char *method_name)
                return NULL;
        }
 
+       soup_message_add_header (SOUP_MESSAGE (msg)->request_headers, "User-Agent",
+                                "Evolution/" VERSION);
+
 #ifdef G_ENABLE_DEBUG
        setup_debug (msg);
 #endif
 
-       soup_message_add_header (SOUP_MESSAGE (msg)->request_headers, "User-Agent",
-                                "Evolution/" VERSION);
-
        soup_soap_message_start_envelope (msg);
        soup_soap_message_start_body (msg);
        soup_soap_message_add_attribute (msg, "encodingStyle", "", "SOAP-ENV", NULL);
@@ -118,4 +113,12 @@ e_gw_message_write_footer (SoupSoapMessage *msg)
        soup_soap_message_end_element (msg);
        soup_soap_message_end_body (msg);
        soup_soap_message_end_envelope (msg);
+
+#ifdef G_ENABLE_DEBUG
+       /* print request's body */
+       fputc ('\n', stdout);
+       fwrite (SOUP_MESSAGE (msg)->request.body, 1, SOUP_MESSAGE (msg)->request.length, stdout);
+       fputc ('\n', stdout);
+#endif
+
 }