content_encoding: change return code on a failure

Failure to decompress is now a write error instead of the weird
"function not found".
This commit is contained in:
Daniel Stenberg 2016-12-29 11:24:20 +01:00
parent 278034a61c
commit ad10eb5fed
1 changed files with 1 additions and 1 deletions

View File

@ -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