summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-12-29 07:01:11 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-12-29 07:01:11 +0000
commit818700cfcffd80dd560415137812fbbb323767f5 (patch)
tree7fcf185765ad602bf3a241d84b29af66d035f78c
parent0e8fc7a6b4eda25ebfa7e21fbd98640df3a46ae2 (diff)
downloadnginx-818700cfcffd80dd560415137812fbbb323767f5.tar.gz
nginx-818700cfcffd80dd560415137812fbbb323767f5.tar.bz2
fix the previous commit
-rw-r--r--src/http/modules/ngx_http_range_filter_module.c5
1 files changed, 4 insertions, 1 deletions
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);
}