mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Fixed ngx_http_modsecurity_header_filter() to call next header filter eventually.
Returning of NGX_OK there may lead to request's hang, in particular when HEAD method is used.
This commit is contained in:
@@ -1294,7 +1294,7 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r) {
|
||||
"modSecurity: header filter");
|
||||
|
||||
r->filter_need_in_memory = 1;
|
||||
return NGX_OK;
|
||||
return ngx_http_next_header_filter(r);
|
||||
}
|
||||
#endif
|
||||
#ifndef NGX_HTTP_MODSECURITY_PREACCESS_HANDLER_ONLY
|
||||
|
||||
Reference in New Issue
Block a user