]> git.kaiwu.me - nginx.git/commitdiff
fix the previous commit
authorIgor Sysoev <igor@sysoev.ru>
Fri, 29 Dec 2006 07:01:11 +0000 (07:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 29 Dec 2006 07:01:11 +0000 (07:01 +0000)
src/http/modules/ngx_http_range_filter_module.c

index 5ecbb6233f8863077bcb0e5ed49feb1cd8f2ecb6..3a1561a40b29146f05d9e8e4945cb9efe430bf07 100644 (file)
@@ -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);
     }