diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-11 15:57:14 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-11 15:57:14 +0000 |
commit | ac662fbe1be7a9bdcc2a727126df19471663ff72 (patch) | |
tree | 3e8da2d712aa00eac7eafdf7ecb0fc2b6c32e011 /src | |
parent | 371766c0a5593e1d413d05cec3f43384521bf2fc (diff) | |
download | nginx-ac662fbe1be7a9bdcc2a727126df19471663ff72.tar.gz nginx-ac662fbe1be7a9bdcc2a727126df19471663ff72.zip |
fix zero length static response, the bug was introduced in r2378
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_static_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |