From: Michael Wallner Date: Fri, 6 Jan 2006 10:07:32 +0000 (+0000) Subject: - zlib's compress has nothing to do with *nix compress X-Git-Tag: RELEASE_1_0_4~21 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=29c05d24f9235c6525da19568062d60ff59eb4af - zlib's compress has nothing to do with *nix compress --- diff --git a/http_message_api.c b/http_message_api.c index 4be4c17..853cdb7 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -233,9 +233,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char if ( !strcasecmp(Z_STRVAL_P(c), "gzip") || !strcasecmp(Z_STRVAL_P(c), "x-gzip") || - !strcasecmp(Z_STRVAL_P(c), "deflate") || - !strcasecmp(Z_STRVAL_P(c), "compress") || - !strcasecmp(Z_STRVAL_P(c), "x-compress")) { + !strcasecmp(Z_STRVAL_P(c), "deflate")) { http_encoding_inflate(PHPSTR_VAL(msg), PHPSTR_LEN(msg), &decoded, &decoded_len); } diff --git a/http_request_api.c b/http_request_api.c index 6bc27e5..605b6be 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -485,7 +485,7 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti } } if ((zoption = http_request_option(request, options, "compress", IS_BOOL)) && Z_LVAL_P(zoption)) { - request->_cache.headers = curl_slist_append(request->_cache.headers, "Accept-Encoding: gzip;q=1.0,deflate;q=0.5,*;q=0.1"); + request->_cache.headers = curl_slist_append(request->_cache.headers, "Accept-Encoding: gzip;q=1.0,deflate;q=0.5"); } HTTP_CURL_OPT(HTTPHEADER, request->_cache.headers);