Commit 5e7e4c0c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

parent 25503ad7
......@@ -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;
});
......
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