Mercurial > hg > nginx
diff src/http/modules/ngx_http_static_module.c @ 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 | 87b8c44906b5 |
children | aee735f41627 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_module.c Thu Dec 11 15:30:52 2008 +0000 +++ b/src/http/modules/ngx_http_static_module.c Thu Dec 11 15:57:14 2008 +0000 @@ -217,7 +217,7 @@ return NGX_HTTP_INTERNAL_SERVER_ERROR; } - if (of.size == 0) { + if (r != r->main && of.size == 0) { return ngx_http_send_header(r); }