mirror of
https://github.com/curl/curl.git
synced 2026-04-24 05:52:11 +03:00
http2: use the support HTTP2 draft version in the upgrade header
... instead of HTTP/2.0 to work fine with the nghttpx proxy/server.
This commit is contained in:
parent
86d340af27
commit
0d55f4e1bc
1 changed files with 3 additions and 2 deletions
|
|
@ -171,8 +171,9 @@ CURLcode Curl_http2_request(Curl_send_buffer *req,
|
|||
|
||||
result = Curl_add_bufferf(req,
|
||||
"Connection: Upgrade, HTTP2-Settings\r\n"
|
||||
"Upgrade: HTTP/2.0\r\n"
|
||||
"HTTP2-Settings: %s\r\n", base64);
|
||||
"Upgrade: %s\r\n"
|
||||
"HTTP2-Settings: %s\r\n",
|
||||
NGHTTP2_PROTO_VERSION_ID, base64);
|
||||
free(base64);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue