1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Mark clearly where the response begins and ends in the debug output.

This commit is contained in:
hniksic 2003-11-08 17:05:35 -08:00
parent 35e205ef2f
commit c4ba08110d

View File

@ -940,7 +940,7 @@ Accept: %s\r\n\
post_content_type ? post_content_type : "", post_content_type ? post_content_type : "",
post_content_length ? post_content_length : "", post_content_length ? post_content_length : "",
opt.user_header ? opt.user_header : ""); opt.user_header ? opt.user_header : "");
DEBUGP (("---request begin---\n%s", request)); DEBUGP (("\n---request begin---\n%s", request));
/* Free the temporary memory. */ /* Free the temporary memory. */
xfree_null (wwwauth); xfree_null (wwwauth);
@ -981,6 +981,9 @@ Accept: %s\r\n\
rbuf_initialize (&rbuf, sock); rbuf_initialize (&rbuf, sock);
all_headers = NULL; all_headers = NULL;
all_length = 0; all_length = 0;
DEBUGP (("\n---response begin---\n"));
/* Header-fetching loop. */ /* Header-fetching loop. */
hcount = 0; hcount = 0;
while (1) while (1)
@ -1160,6 +1163,7 @@ Accept: %s\r\n\
done_header: done_header:
xfree (hdr); xfree (hdr);
} }
DEBUGP (("---response end---\n"));
logputs (LOG_VERBOSE, "\n"); logputs (LOG_VERBOSE, "\n");