nghttpx: Fix wrong version ID in Upgrade response header field

This commit is contained in:
Tatsuhiro Tsujikawa 2013-09-26 21:46:03 +09:00
parent c5912341ad
commit 3368c8b378
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ int ClientHandler::perform_http2_upgrade(HttpsUpstream *http)
set_bev_cb(upstream_http2_connhd_readcb, upstream_writecb, upstream_eventcb); set_bev_cb(upstream_http2_connhd_readcb, upstream_writecb, upstream_eventcb);
static char res[] = "HTTP/1.1 101 Switching Protocols\r\n" static char res[] = "HTTP/1.1 101 Switching Protocols\r\n"
"Connection: Upgrade\r\n" "Connection: Upgrade\r\n"
"Upgrade: HTTP/2.0\r\n" "Upgrade: " NGHTTP2_PROTO_VERSION_ID "\r\n"
"\r\n"; "\r\n";
rv = bufferevent_write(bev_, res, sizeof(res) - 1); rv = bufferevent_write(bev_, res, sizeof(res) - 1);
if(rv != 0) { if(rv != 0) {