From: Michael Wallner Date: Tue, 6 Dec 2005 14:00:43 +0000 (+0000) Subject: * Fixed bug which caused GZIP encoded archives to be decoded X-Git-Tag: RELEASE_0_20_0~51 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=902522d8c8f5fc5b2c58cd32cea4bb099f16824c;p=m6w6%2Fext-http * Fixed bug which caused GZIP encoded archives to be decoded --- diff --git a/http_message_api.c b/http_message_api.c index b59dace..d9b33d1 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -224,7 +224,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char #if defined(HTTP_HAVE_ZLIB) || defined(HAVE_ZLIB) /* check for compressed data */ - if ((c = http_message_header(msg, "Content-Encoding"))) { + if (http_message_header(msg, "Vary") && (c = http_message_header(msg, "Content-Encoding"))) { char *decoded = NULL; size_t decoded_len = 0; # if defined(HAVE_ZLIB) && !defined(HTTP_HAVE_ZLIB) diff --git a/package2.xml b/package2.xml index 93e0a1a..b963654 100644 --- a/package2.xml +++ b/package2.xml @@ -43,6 +43,8 @@ HttpUtil, HttpMessage, HttpRequest, HttpRequestPool; HttpResponse (PHP-5.1) BSD, revised