Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_static_module.c @ 136:3656228c0b56 NGINX_0_3_15
nginx 0.3.15
*) 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 <http://sysoev.ru> |
---|---|
date | Wed, 07 Dec 2005 00:00:00 +0300 |
parents | 1898c6d03d90 |
children | 36af50a5582d |
comparison
equal
deleted
inserted
replaced
135:c1ac76c0e9df | 136:3656228c0b56 |
---|---|
242 | 242 |
243 if (ngx_http_set_content_type(r) != NGX_OK) { | 243 if (ngx_http_set_content_type(r) != NGX_OK) { |
244 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 244 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
245 } | 245 } |
246 | 246 |
247 if (r->main != r && ngx_file_size(&fi) == 0) { | |
248 return ngx_http_send_header(r); | |
249 } | |
250 | |
247 r->allow_ranges = 1; | 251 r->allow_ranges = 1; |
248 | |
249 if (r->header_only || (r->main != r && ngx_file_size(&fi) == 0)) { | |
250 return ngx_http_send_header(r); | |
251 } | |
252 | 252 |
253 /* we need to allocate all before the header would be sent */ | 253 /* we need to allocate all before the header would be sent */ |
254 | 254 |
255 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); | 255 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); |
256 if (b == NULL) { | 256 if (b == NULL) { |