]> granicus.if.org Git - curl/commitdiff
Nic Hines fixed this bug when deflate or gzip contents were downloaded using
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Apr 2003 16:23:43 +0000 (16:23 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Apr 2003 16:23:43 +0000 (16:23 +0000)
chunked encoding.

lib/http_chunks.c

index 6fea493acbd25170cdc8dca8a6ee9099aa1d0e8a..ca9b55366a51f16b3104ceb476ac558d5d89a8d7 100644 (file)
@@ -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;