aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 2fbc2c615..65c899934 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1158,12 +1158,14 @@ CURLcode Curl_readwrite(struct connectdata *conn,
case DEFLATE:
/* Assume CLIENTWRITE_BODY; headers are not encoded. */
- result = Curl_unencode_deflate_write(data, k, nread);
+ if(!k->ignorebody)
+ result = Curl_unencode_deflate_write(data, k, nread);
break;
case GZIP:
/* Assume CLIENTWRITE_BODY; headers are not encoded. */
- result = Curl_unencode_gzip_write(data, k, nread);
+ if(!k->ignorebody)
+ result = Curl_unencode_gzip_write(data, k, nread);
break;
case COMPRESS: