Mercurial > hg > nginx
comparison src/http/modules/ngx_http_static_handler.c @ 334:af451db3fe99
nginx-0.0.3-2004-05-12-09:37:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 12 May 2004 05:37:55 +0000 |
parents | 5cfd65b8b0a7 |
children | 6bdf858bff8c |
comparison
equal
deleted
inserted
replaced
333:be40e9893a19 | 334:af451db3fe99 |
---|---|
478 | 478 |
479 if (!(h->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t)))) { | 479 if (!(h->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 rc = ngx_http_send_header(r); | 484 rc = ngx_http_send_header(r); |
484 | 485 |
485 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { | 486 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { |
486 return rc; | 487 return rc; |
487 } | 488 } |