From f5be6049131656efb9e79ae7ada7342742bd9ede Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 12 Dec 2003 16:48:57 +0000 Subject: [PATCH] fixed typo. 2003-12-12 Rodrigo Moya * backends/groupwise/e-gw-message.c (setup_debug): fixed typo. --- calendar/ChangeLog | 2 ++ calendar/backends/groupwise/e-gw-message.c | 19 +++++++++++-------- servers/groupwise/e-gw-message.c | 19 +++++++++++-------- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6590685..d0ccc62 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,7 @@ 2003-12-12 Rodrigo Moya + * backends/groupwise/e-gw-message.c (setup_debug): fixed typo. + * backends/groupwise/Makefile.am: use $DEBUG_CFLAGS. 2003-12-12 Rodrigo Moya diff --git a/calendar/backends/groupwise/e-gw-message.c b/calendar/backends/groupwise/e-gw-message.c index 4d22ecf..bfdb713 100644 --- a/calendar/backends/groupwise/e-gw-message.c +++ b/calendar/backends/groupwise/e-gw-message.c @@ -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 + } diff --git a/servers/groupwise/e-gw-message.c b/servers/groupwise/e-gw-message.c index 4d22ecf..bfdb713 100644 --- a/servers/groupwise/e-gw-message.c +++ b/servers/groupwise/e-gw-message.c @@ -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 + } -- 2.7.4