nghttpx: Fix PUSH_PROMISE header field corruption

Fixes GH-194
This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-26 22:52:51 +09:00
parent 8afbb6ca26
commit dc85623060
1 changed files with 2 additions and 2 deletions

View File

@ -1589,11 +1589,11 @@ int Http2Upstream::submit_push_promise(const std::string &path,
// juse use "GET" for now
nva.push_back(http2::make_nv_ll(":method", "GET"));
nva.push_back(
http2::make_nv(":scheme", downstream->get_request_http2_scheme()));
http2::make_nv_ls(":scheme", downstream->get_request_http2_scheme()));
nva.push_back(http2::make_nv_ls(":path", path));
auto &authority = downstream->get_request_http2_authority();
if (!authority.empty()) {
nva.push_back(http2::make_nv(":authority", authority));
nva.push_back(http2::make_nv_ls(":authority", authority));
}
for (auto &kv : downstream->get_request_headers()) {