From: Daniel Stenberg Date: Fri, 11 Apr 2003 16:23:43 +0000 (+0000) Subject: Nic Hines fixed this bug when deflate or gzip contents were downloaded using X-Git-Tag: curl-7_10_5~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b51b2f12834f09763d4e53cd1737d450d46cd9c;p=curl Nic Hines fixed this bug when deflate or gzip contents were downloaded using chunked encoding. --- diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 6fea493ac..ca9b55366 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -186,10 +186,14 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, break; case DEFLATE: + /* update conn->keep.str to point to the chunk data. */ + conn->keep.str = datap; result = Curl_unencode_deflate_write(conn->data, &conn->keep, piece); break; case GZIP: + /* update conn->keep.str to point to the chunk data. */ + conn->keep.str = datap; result = Curl_unencode_gzip_write(conn->data, &conn->keep, piece); break;