nghttp: config.headers should be inspected rather than req->req_nva

This commit is contained in:
Tatsuhiro Tsujikawa 2017-01-17 23:00:37 +09:00
parent 25503ad763
commit 5e7e4c0cc0
1 changed files with 1 additions and 1 deletions

View File

@ -1600,7 +1600,7 @@ void update_html_parser(HttpClient *client, Request *req, const uint8_t *data,
const char *host_string = nullptr;
auto found =
std::find_if(std::begin(req->req_nva), std::end(req->req_nva),
std::find_if(std::begin(config.headers), std::end(config.headers),
[](const Header &nv) {
return ":authority" == nv.name || "host" == nv.name;
});