aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-11 16:23:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-11 16:23:43 +0000
commit7b51b2f12834f09763d4e53cd1737d450d46cd9c (patch)
treed4d46c6a353545d9ea2e25e39f8fff37d62b63a6 /lib
parent22d88fb28e9610f1d20228149004192976524741 (diff)
Nic Hines fixed this bug when deflate or gzip contents were downloaded using
chunked encoding.
Diffstat (limited to 'lib')
-rw-r--r--lib/http_chunks.c4
1 files changed, 4 insertions, 0 deletions
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;