aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-02-04 15:07:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-02-04 15:07:08 +0100
commite5524b7b259fa6748c0ac9db92da654fd68571a4 (patch)
tree801f949e89aac1f6bc0f43209042ea8f94a24f22 /lib
parent0ea9f70049ef69265760fa2925c34cd48a804437 (diff)
http2: enforce gzip auto-decompress
As this is mandated by the http2 spec draft-09
Diffstat (limited to 'lib')
-rw-r--r--lib/http2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index bd35d6208..baf36cc4c 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -410,6 +410,7 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req,
free(base64);
k->upgr101 = UPGR101_REQUESTED;
+ k->auto_decoding = GZIP;
return result;
}
@@ -640,6 +641,8 @@ int Curl_http2_switched(struct connectdata *conn)
httpc->data = NULL;
httpc->datalen = 0;
+ conn->data->req.auto_decoding = GZIP;
+
/* Put place holder for status line */
Curl_add_buffer(httpc->header_recvbuf, "HTTP/2.0 200\r\n", 14);