Commit ad10eb5f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

content_encoding: change return code on a failure

Failure to decompress is now a write error instead of the weird
"function not found".
parent 278034a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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