Mercurial > hg > nginx
comparison src/http/modules/ngx_http_static_handler.c @ 346:55e496a8ece3
nginx-0.0.3-2004-06-06-23:49:18 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 06 Jun 2004 19:49:18 +0000 |
parents | 6bdf858bff8c |
children | 6f3b20c1ac50 |
comparison
equal
deleted
inserted
replaced
345:fade4edd61f8 | 346:55e496a8ece3 |
---|---|
478 | 478 |
479 if (!(b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)))) { | 479 if (!(b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)))) { |
480 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 480 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
481 } | 481 } |
482 | 482 |
483 r->filter |= NGX_HTTP_FILTER_ALLOW_RANGES; | 483 r->filter_allow_ranges = 1; |
484 rc = ngx_http_send_header(r); | 484 rc = ngx_http_send_header(r); |
485 | 485 |
486 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { | 486 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { |
487 return rc; | 487 return rc; |
488 } | 488 } |