Commit ed1d7cde authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Fix allow_push is not used

parent 47f53940
...@@ -703,7 +703,7 @@ void prepare_response(Request *req, Http2Handler *hd, bool allow_push = true) ...@@ -703,7 +703,7 @@ void prepare_response(Request *req, Http2Handler *hd, bool allow_push = true)
return; return;
} }
auto push_itr = hd->get_config()->push.find(url); 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) { for(auto& push_path : (*push_itr).second) {
rv = hd->submit_push_promise(req, push_path); rv = hd->submit_push_promise(req, push_path);
if(rv != 0) { if(rv != 0) {
......
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