projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d340a
)
http2: use the support HTTP2 draft version in the upgrade header
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 10 Sep 2013 21:05:04 +0000
(23:05 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 10 Sep 2013 21:06:20 +0000
(23:06 +0200)
... instead of HTTP/2.0 to work fine with the nghttpx proxy/server.
lib/http2.c
patch
|
blob
|
history
diff --git
a/lib/http2.c
b/lib/http2.c
index c8e1964a4f75effc621d36072e29b5091e96a1f3..b876436e1a51468e84d464dcc9a268dc259d50c0 100644
(file)
--- 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;