Commit b2a34c2e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix bug content-length is removed

parent 358d12a8
......@@ -289,6 +289,14 @@ void on_frame_recv_callback
return;
}
if(req_hdidx[4] != -1) {
downstream->add_request_header
(std::string(reinterpret_cast<char*>(nva[req_hdidx[4]].name),
nva[req_hdidx[4]].namelen),
std::string(reinterpret_cast<char*>(nva[req_hdidx[4]].value),
nva[req_hdidx[4]].valuelen));
}
std::string host(reinterpret_cast<char*>(nva[req_hdidx[0]].value),
nva[req_hdidx[0]].valuelen);
std::string method(reinterpret_cast<char*>(nva[req_hdidx[1]].value),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment