http2: don't decompress gzip decoding automatically
At one point during the development of HTTP/2, the commit 133cdd29ea
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
This commit is contained in:
Родитель
b080a7cd06
Коммит
eb083e0d39
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче