Skip to content
Snippets Groups Projects
Commit e5524b7b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2: enforce gzip auto-decompress

As this is mandated by the http2 spec draft-09
parent 0ea9f700
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment