X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=38eadf45f24343b653faa7aae58e5d748fbc59be;hp=f02aa18ff91c500e1477809f616767ba10c79ab8;hb=6fc78f4b8ea8a34a40f06985648822fbaa7ffb30;hpb=11ab01d7187d849bff12366a11174df582ce9657 diff --git a/http_request_api.c b/http_request_api.c index f02aa18..38eadf4 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -467,10 +467,10 @@ PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char /* compress, empty string enables all supported if libcurl was build with zlib support */ if ((zoption = http_curl_getopt(options, "compress", IS_BOOL)) && Z_LVAL_P(zoption)) { -#if defined(HTTP_HAVE_ZLIB) || defined(HAVE_ZLIB) - HTTP_CURL_OPT(ENCODING, "gzip;q=1.0, deflate;q=0.5, *;q=0"); -#else +#ifdef HTTP_HAVE_CURL_ZLIB HTTP_CURL_OPT(ENCODING, ""); +#else + HTTP_CURL_OPT(ENCODING, "gzip;q=1.0, deflate;q=0.5, *;q=0.1"); #endif }