diff options
author | Fabian Frank <fabian@pagefault.de> | 2014-02-05 00:21:16 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-05 10:26:12 +0100 |
commit | 133cdd29ea059f6596b387878ce3bc60d501c798 (patch) | |
tree | 54014308fa1b32e618665b286d4f88818e01da3a /lib/http2.c | |
parent | ff0547e70e5431a462b0712f68e5e98fb8ae572f (diff) |
http2: rely on content-encoding header
A server might respond with a content-encoding header and a response
that was encoded accordingly in HTTP-draft-09/2.0 mode, even if the
client did not send an accept-encoding header earlier. The server might
not send a content-encoding header if the identity encoding was used to
encode the response.
See:
http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-9.3
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http2.c b/lib/http2.c index baf36cc4c..a4baca9f1 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -410,7 +410,6 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req, free(base64); k->upgr101 = UPGR101_REQUESTED; - k->auto_decoding = GZIP; return result; } @@ -641,7 +640,7 @@ int Curl_http2_switched(struct connectdata *conn) httpc->data = NULL; httpc->datalen = 0; - conn->data->req.auto_decoding = GZIP; + conn->httpversion = 20; /* Put place holder for status line */ Curl_add_buffer(httpc->header_recvbuf, "HTTP/2.0 200\r\n", 14); |