# HG changeset patch # User Igor Sysoev # Date 1229011034 0 # Node ID 5e5caa72f61e78b2321cdd5ec9223da322a3fda9 # Parent cd6a1abe11a7190594cba3c4d3714a4d036677db 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 --- 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); }