aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-12 12:29:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-12 12:29:00 +0000
commit940707ad6632fa557f2ac28685afa153a3883f19 (patch)
treee64c7048e0f46ae03a108951d63a9e6eaad0d326
parente6c267fb4c9e1fbb07f6b125fc2a373fa3f60a2f (diff)
incoming proxy headers shall be sent to the debug function has HEADERs not
DATA
-rw-r--r--lib/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c
index 40fa54949..a41d0b048 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -491,16 +491,16 @@ CURLcode Curl_ConnectHTTPProxyTunnel(struct connectdata *conn,
/* a newline is CRLF in ftp-talk, so the CR is ignored as
the line isn't really terminated until the LF comes */
- /* output debug output if that is requested */
- if(data->set.verbose)
- Curl_debug(data, CURLINFO_DATA_IN, line_start, perline);
-
if('\r' == line_start[0]) {
/* end of headers */
keepon=FALSE;
break; /* breaks out of loop, not switch */
}
+ /* output debug output if that is requested */
+ if(data->set.verbose)
+ Curl_debug(data, CURLINFO_HEADER_IN, line_start, perline);
+
if(2 == sscanf(line_start, "HTTP/1.%d %d",
&subversion,
&httperror)) {