From 5e7e4c0cc006247c3ad89e9b2331819211ae917f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 17 Jan 2017 23:00:37 +0900 Subject: [PATCH] nghttp: config.headers should be inspected rather than req->req_nva --- src/nghttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 15274723..fa763d40 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -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; });