From eeec229e3e5c1278dd98d48d96cd6d7063da3974 Mon Sep 17 00:00:00 2001 From: Andrey Belov Date: Thu, 26 Apr 2012 13:06:27 +0000 Subject: Allows particular modules to handle subrequests properly. --- src/http/modules/ngx_http_gzip_static_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_gzip_static_module.c') diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index 46ce8f3f3..b0183e0aa 100644 --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -245,7 +245,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r) b->file_last = of.size; b->in_file = b->file_last ? 1 : 0; - b->last_buf = 1; + b->last_buf = (r == r->main) ? 1 : 0; b->last_in_chain = 1; b->file->fd = of.fd; -- cgit