summaryrefslogtreecommitdiff
path: root/lib/content_encoding.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-12-29 11:24:20 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-12-29 11:31:01 +0100
commitad10eb5fed351072ac4528b5e57f92f0a381ac24 (patch)
treeaa17ec8a15375de288b5ba4c8cb78afaf724e6d9 /lib/content_encoding.c
parent278034a61c49a1e06f85bcef4b4a277162280784 (diff)
downloadcurl-ad10eb5fed351072ac4528b5e57f92f0a381ac24.tar.gz
content_encoding: change return code on a failure
Failure to decompress is now a write error instead of the weird "function not found".
Diffstat (limited to 'lib/content_encoding.c')
-rw-r--r--lib/content_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index 5385058e2..c3996a113 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -314,7 +314,7 @@ Curl_unencode_gzip_write(struct connectdata *conn,
#ifndef OLD_ZLIB_SUPPORT
/* Support for old zlib versions is compiled away and we are running with
an old version, so return an error. */
- return exit_zlib(z, &k->zlib_init, CURLE_FUNCTION_NOT_FOUND);
+ return exit_zlib(z, &k->zlib_init, CURLE_WRITE_ERROR);
#else
/* This next mess is to get around the potential case where there isn't