From: Igor Sysoev Date: Fri, 29 Dec 2006 07:01:11 +0000 (+0000) Subject: fix the previous commit X-Git-Tag: release-0.5.6~37 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=818700cfcffd80dd560415137812fbbb323767f5;p=nginx.git fix the previous commit --- diff --git a/src/http/modules/ngx_http_range_filter_module.c b/src/http/modules/ngx_http_range_filter_module.c index 5ecbb6233..3a1561a40 100644 --- a/src/http/modules/ngx_http_range_filter_module.c +++ b/src/http/modules/ngx_http_range_filter_module.c @@ -471,7 +471,10 @@ ngx_http_range_body_filter(ngx_http_request_t *r, ngx_chain_t *in) ngx_http_range_t *range; ngx_http_range_filter_ctx_t *ctx; - if (in == NULL || r->headers_out.ranges.nelts == 0) { + if (in == NULL + || r->headers_out.ranges.nelts == 0 + || ngx_buf_special(in->buf)) + { return ngx_http_next_body_filter(r, in); }