From 5119fb16d63e91972924e54d455c825f62b1440d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Jul 2007 22:45:01 +0000 Subject: 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). --- lib/http_chunks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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: -- cgit v1.2.3