# HG changeset patch # User Igor Sysoev # Date 1167375671 0 # Node ID 0d5ec8432efc6f7b08ad900972240409238cbf5f # Parent 20279ed90b193349260def62e68ba0f126b7c9e0 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 --- 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_requ 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); }