From: Igor Sysoev Date: Thu, 11 Dec 2008 15:57:14 +0000 (+0000) Subject: fix zero length static response, the bug was introduced in r2378 X-Git-Tag: release-0.7.27~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=ac662fbe1be7a9bdcc2a727126df19471663ff72;p=nginx.git fix zero length static response, the bug was introduced in r2378 --- diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c index e90d83c57..9ff1f817f 100644 --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -217,7 +217,7 @@ ngx_http_static_handler(ngx_http_request_t *r) return NGX_HTTP_INTERNAL_SERVER_ERROR; } - if (of.size == 0) { + if (r != r->main && of.size == 0) { return ngx_http_send_header(r); }