Loading lib/http_chunks.c +5 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ #include "urldata.h" /* it includes http_chunks.h */ #include "sendf.h" /* for the client write stuff */ #include "content_encoding.h" /* 08/29/02 jhrg */ #include "content_encoding.h" #include "http.h" #include "memory.h" Loading Loading @@ -178,8 +178,6 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, piece = (ch->datasize >= length)?length:ch->datasize; /* Write the data portion available */ /* Added content-encoding here; untested but almost identical to the tested code in transfer.c. 08/29/02 jhrg */ #ifdef HAVE_LIBZ switch (conn->keep.content_encoding) { case IDENTITY: Loading @@ -193,13 +191,15 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, 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); result = Curl_unencode_deflate_write(conn->data, &conn->keep, (ssize_t)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); result = Curl_unencode_gzip_write(conn->data, &conn->keep, (ssize_t)piece); break; case COMPRESS: Loading Loading
lib/http_chunks.c +5 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ #include "urldata.h" /* it includes http_chunks.h */ #include "sendf.h" /* for the client write stuff */ #include "content_encoding.h" /* 08/29/02 jhrg */ #include "content_encoding.h" #include "http.h" #include "memory.h" Loading Loading @@ -178,8 +178,6 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, piece = (ch->datasize >= length)?length:ch->datasize; /* Write the data portion available */ /* Added content-encoding here; untested but almost identical to the tested code in transfer.c. 08/29/02 jhrg */ #ifdef HAVE_LIBZ switch (conn->keep.content_encoding) { case IDENTITY: Loading @@ -193,13 +191,15 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, 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); result = Curl_unencode_deflate_write(conn->data, &conn->keep, (ssize_t)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); result = Curl_unencode_gzip_write(conn->data, &conn->keep, (ssize_t)piece); break; case COMPRESS: Loading