From: Daniel Stenberg Date: Thu, 29 Dec 2016 10:24:20 +0000 (+0100) Subject: content_encoding: change return code on a failure X-Git-Tag: curl-7_53_0~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad10eb5fed351072ac4528b5e57f92f0a381ac24;p=thirdparty%2Fcurl.git content_encoding: change return code on a failure Failure to decompress is now a write error instead of the weird "function not found". --- diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 5385058e2e..c3996a1130 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