X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=38eadf45f24343b653faa7aae58e5d748fbc59be;hp=c43aa1abfa3cd3a013a368359f4e369dcf573227;hb=6fc78f4b8ea8a34a40f06985648822fbaa7ffb30;hpb=419ba9235752d56f15b393fc7969316978c6c721 diff --git a/http_request_api.c b/http_request_api.c index c43aa1a..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.1"); -#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 }