mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 02:58:53 +08:00
nghttpd: Fix allow_push is not used
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user