aboutsummaryrefslogtreecommitdiff
path: root/lib/http_chunks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-10 22:45:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-10 22:45:01 +0000
commit5119fb16d63e91972924e54d455c825f62b1440d (patch)
tree6bad9de391b8f3462da8dc42a2e25288c821128a /lib/http_chunks.c
parentdc2c70be070f0da6e61777d7a8cb2e47576b461c (diff)
Shmulik Regev:
The tiny patch below fixes a bug (that I introduced :) which happens when negotiating authentication with a proxy (probably with web servers as well) that uses chunked transfer encoding for the 407 error pages. In this case the ''ignorebody'' flag was ignored (no pun intended).
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r--lib/http_chunks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c
index cc89068f3..8e44b6d05 100644
--- a/lib/http_chunks.c
+++ b/lib/http_chunks.c
@@ -118,10 +118,9 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn,
/* the original data is written to the client, but we go on with the
chunk read process, to properly calculate the content length*/
- if ( data->set.http_te_skip )
+ if (data->set.http_te_skip && !k->ignorebody)
Curl_client_write(conn, CLIENTWRITE_BODY, datap,datalen);
-
while(length) {
switch(ch->state) {
case CHUNK_HEX: