changeset 961:0d5ec8432efc

fix the previous commit
author Igor Sysoev <igor@sysoev.ru>
date Fri, 29 Dec 2006 07:01:11 +0000
parents 20279ed90b19
children 69754fb59ba1
files src/http/modules/ngx_http_range_filter_module.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }