]> granicus.if.org Git - curl/commitdiff
http2: don't decompress gzip decoding automatically
authorDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 07:25:40 +0000 (08:25 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 07:25:40 +0000 (08:25 +0100)
At one point during the development of HTTP/2, the commit 133cdd29ea0
introduced automatic decompression of Content-Encoding as that was what
the spec said then. Now however, HTTP/2 should work the same way as
HTTP/1 in this regard.

Reported-by: Kazuho Oku
Closes #661

lib/http.c

index 55ec3cbf109642f728a0b1d34819d37d662b6be2..409baa7e5e99bf7b049f274b198dd9a5f2de664d 100644 (file)
@@ -3592,8 +3592,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
 
     }
     else if(checkprefix("Content-Encoding:", k->p) &&
-            (data->set.str[STRING_ENCODING] ||
-             conn->httpversion == 20)) {
+            data->set.str[STRING_ENCODING]) {
       /*
        * Process Content-Encoding. Look for the values: identity,
        * gzip, deflate, compress, x-gzip and x-compress. x-gzip and