]> git.kaiwu.me - nginx.git/commitdiff
fix zero length static response, the bug was introduced in r2378
authorIgor Sysoev <igor@sysoev.ru>
Thu, 11 Dec 2008 15:57:14 +0000 (15:57 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 11 Dec 2008 15:57:14 +0000 (15:57 +0000)
src/http/modules/ngx_http_static_module.c

index e90d83c57adf436a5a7bef591b18f34886c744d1..9ff1f817f875e2b207fdb9e355ab1f7186b31f69 100644 (file)
@@ -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);
     }