nghttpx: Fix bug content-length is removed

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-23 02:49:21 +09:00
parent 358d12a842
commit b2a34c2e5b
1 changed files with 8 additions and 0 deletions

View File

@ -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),