Mercurial > hg > nginx
comparison src/http/modules/ngx_http_range_filter_module.c @ 3331:e0bc43a52382
backout r3325: postpone filter is a body only filter
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Nov 2009 13:22:10 +0000 |
parents | 616da2ea901f |
children | dd1570b6f237 |
comparison
equal
deleted
inserted
replaced
3330:b3aaccf50be2 | 3331:e0bc43a52382 |
---|---|
149 ngx_int_t rc; | 149 ngx_int_t rc; |
150 ngx_http_range_filter_ctx_t *ctx; | 150 ngx_http_range_filter_ctx_t *ctx; |
151 | 151 |
152 if (r->http_version < NGX_HTTP_VERSION_10 | 152 if (r->http_version < NGX_HTTP_VERSION_10 |
153 || r->headers_out.status != NGX_HTTP_OK | 153 || r->headers_out.status != NGX_HTTP_OK |
154 || r != r->main | |
154 || r->headers_out.content_length_n == -1 | 155 || r->headers_out.content_length_n == -1 |
155 || !r->allow_ranges) | 156 || !r->allow_ranges) |
156 { | 157 { |
157 return ngx_http_next_header_filter(r); | 158 return ngx_http_next_header_filter(r); |
158 } | 159 } |