X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_message_api.c;h=d9b33d1eac8334ee72e6d63513b32f71367d4ce5;hb=d8523b1334eaf61f71233401fe401925230fe1e5;hp=b59dace58b583f3583cd712bcac5a377fdf54c91;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb;p=m6w6%2Fext-http 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)