From 119364741ef2ca0931c0ceaa6f92cb476457863c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 2 Oct 2007 10:21:36 +0000 Subject: known bug #46: chunked-encoded CONNECT responses from a http proxy now works. Added test case 1008 to verify. Note that #47 is still there. --- lib/transfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 7fa88040e..831cb3e98 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1262,7 +1262,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, We DO care about this data if we are pipelining. Push it back to be read on the next pass. */ - dataleft = data->reqdata.proto.http->chunk.dataleft; + dataleft = conn->chunk.dataleft; if (dataleft != 0) { infof(conn->data, "Leftovers after chunking. " " Rewinding %d bytes\n",dataleft); @@ -1617,7 +1617,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, } else if(!(conn->bits.no_body) && conn->bits.chunk && - (data->reqdata.proto.http->chunk.state != CHUNK_STOP)) { + (conn->chunk.state != CHUNK_STOP)) { /* * In chunked mode, return an error if the connection is closed prior to * the empty (terminiating) chunk is read. -- cgit v1.2.3