aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-02-17 08:25:40 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-02-17 08:25:40 +0100
commiteb083e0d39990c8bdd1f7f1e1d12f7ae92240e73 (patch)
tree21a602633a8ce667d2deacb1eafc557679eb4cc5 /lib
parentb080a7cd0612f96875d2f2ae915f8c729258c9a7 (diff)
http2: don't decompress gzip decoding automatically
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
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 55ec3cbf1..409baa7e5 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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