From ed1d7cdea496a2fd505927145f0effc5a052d861 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 9 Dec 2013 00:04:54 +0900 Subject: [PATCH] nghttpd: Fix allow_push is not used --- src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index ee777b1d..90fca4f8 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -703,7 +703,7 @@ void prepare_response(Request *req, Http2Handler *hd, bool allow_push = true) return; } auto push_itr = hd->get_config()->push.find(url); - if(push_itr != std::end(hd->get_config()->push)) { + if(allow_push && push_itr != std::end(hd->get_config()->push)) { for(auto& push_path : (*push_itr).second) { rv = hd->submit_push_promise(req, push_path); if(rv != 0) {