Mercurial > hg > nginx
comparison src/http/modules/ngx_http_range_filter.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 | 2e3cbc1bbe3c |
comparison
equal
deleted
inserted
replaced
345:fade4edd61f8 | 346:55e496a8ece3 |
---|---|
111 ngx_http_range_filter_ctx_t *ctx; | 111 ngx_http_range_filter_ctx_t *ctx; |
112 | 112 |
113 if (r->http_version < NGX_HTTP_VERSION_10 | 113 if (r->http_version < NGX_HTTP_VERSION_10 |
114 || r->headers_out.status != NGX_HTTP_OK | 114 || r->headers_out.status != NGX_HTTP_OK |
115 || r->headers_out.content_length_n == -1 | 115 || r->headers_out.content_length_n == -1 |
116 || !(r->filter & NGX_HTTP_FILTER_ALLOW_RANGES)) | 116 || !r->filter_allow_ranges) |
117 { | 117 { |
118 return ngx_http_next_header_filter(r); | 118 return ngx_http_next_header_filter(r); |
119 } | 119 } |
120 | 120 |
121 if (r->headers_in.range == NULL | 121 if (r->headers_in.range == NULL |