- zlib's compress has nothing to do with *nix compress
authorMichael Wallner <mike@php.net>
Fri, 6 Jan 2006 10:07:32 +0000 (10:07 +0000)
committerMichael Wallner <mike@php.net>
Fri, 6 Jan 2006 10:07:32 +0000 (10:07 +0000)
http_message_api.c
http_request_api.c

index 4be4c1758e2f8c223952ef23f9961163c2a94dbe..853cdb7d2ada74dd509e9265cfd6c0a532fe1192 100644 (file)
@@ -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);
                        }
                        
index 6bc27e514b03efb16d33b6f6e577d684bcb3ab11..605b6becebc18c77dae3f9f19fcf31b0c25a5439 100644 (file)
@@ -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);