Mercurial > hg > nginx
diff src/http/modules/ngx_http_static_module.c @ 587:284cc140593b release-0.3.15
nginx-0.3.15-RELEASE import
*) Feature: the new 444 code of the "return" directive to close
connection.
*) Feature: the "so_keepalive" directive in IMAP/POP3 proxy.
*) Bugfix: if there are unclosed connection nginx now calls abort()
only on gracefull quit and active "debug_points" directive.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 07 Dec 2005 14:51:31 +0000 |
parents | 401de5a43ba5 |
children | 9262f520ce21 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_module.c Mon Dec 05 16:59:05 2005 +0000 +++ b/src/http/modules/ngx_http_static_module.c Wed Dec 07 14:51:31 2005 +0000 @@ -244,12 +244,12 @@ return NGX_HTTP_INTERNAL_SERVER_ERROR; } - r->allow_ranges = 1; - - if (r->header_only || (r->main != r && ngx_file_size(&fi) == 0)) { + if (r->main != r && ngx_file_size(&fi) == 0) { return ngx_http_send_header(r); } + r->allow_ranges = 1; + /* we need to allocate all before the header would be sent */ b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));