From fdf0ba540ff927f6ae3230106fbe856b928872a5 Mon Sep 17 00:00:00 2001 From: chaizhenhua Date: Thu, 11 Apr 2013 16:02:06 +0800 Subject: [PATCH] Nginx Improved: set filter_need_in_memory flag so that nginx transfer response in memory, we do not need read from file buffer. --- nginx/modsecurity/ngx_http_modsecurity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/modsecurity/ngx_http_modsecurity.c b/nginx/modsecurity/ngx_http_modsecurity.c index 18b17266..8cf0992a 100644 --- a/nginx/modsecurity/ngx_http_modsecurity.c +++ b/nginx/modsecurity/ngx_http_modsecurity.c @@ -1140,6 +1140,7 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r) { } /* SecResponseBodyAccess on, process rules in body filter */ + r->filter_need_in_memory = 1; return NGX_OK; }