mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
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:
parent
278034a61c
commit
ad10eb5fed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user