From 77feb2b76112de3113b721778f92925600280eb1 Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Mon, 19 May 2014 15:55:51 +0400 Subject: [PATCH] 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. --- nginx/modsecurity/ngx_http_modsecurity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/modsecurity/ngx_http_modsecurity.c b/nginx/modsecurity/ngx_http_modsecurity.c index f5058306..9926c71b 100644 --- a/nginx/modsecurity/ngx_http_modsecurity.c +++ b/nginx/modsecurity/ngx_http_modsecurity.c @@ -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