diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_range_filter_module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_range_filter_module.c b/src/http/modules/ngx_http_range_filter_module.c index 8dd07205a..ae08ebbc5 100644 --- a/src/http/modules/ngx_http_range_filter_module.c +++ b/src/http/modules/ngx_http_range_filter_module.c @@ -723,6 +723,10 @@ ngx_http_range_singlepart_body(ngx_http_request_t *r, if (ngx_buf_special(buf)) { + if (range->end <= start) { + continue; + } + tl = ngx_alloc_chain_link(r->pool); if (tl == NULL) { return NGX_ERROR; @@ -802,10 +806,6 @@ ngx_http_range_singlepart_body(ngx_http_request_t *r, ll = &tl->next; } - if (out == NULL) { - return NGX_OK; - } - rc = ngx_http_next_body_filter(r, out); while (out) { |