changeset 2403:5e5caa72f61e

fix zero length static response, the bug was introduced in r2378
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Dec 2008 15:57:14 +0000
parents cd6a1abe11a7
children dca164c4a868
files src/http/modules/ngx_http_static_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
-    if (of.size == 0) {
+    if (r != r->main && of.size == 0) {
         return ngx_http_send_header(r);
     }