diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-09-10 23:05:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-09-10 23:06:20 +0200 |
commit | 0d55f4e1bcc80a457037f3b37cfeedcb076eeed0 (patch) | |
tree | cd1d9308d6c58dd050307b0a20f81100d0bfa29e /lib | |
parent | 86d340af27e5296d7db25acdfbf8965670e40e79 (diff) |
http2: use the support HTTP2 draft version in the upgrade header
... instead of HTTP/2.0 to work fine with the nghttpx proxy/server.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/http2.c b/lib/http2.c index c8e1964a4..b876436e1 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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; |