summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-10-02 15:38:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-10-02 15:38:26 +0000
commit674371499c3531d7748b88095ba2f75c8719b0cd (patch)
treed5864276880e03436b2c9a54384356799ce3ecbd
parent797c6ef39432fc6f883261054c97802f18d34548 (diff)
downloadnginx-674371499c3531d7748b88095ba2f75c8719b0cd.tar.gz
nginx-674371499c3531d7748b88095ba2f75c8719b0cd.tar.bz2
fix r2122:
*) update file buf pointers, *) avoid "zero buf" alert
-rw-r--r--src/http/modules/ngx_http_range_filter_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_range_filter_module.c b/src/http/modules/ngx_http_range_filter_module.c
index 377ca9b28..4a15637f5 100644
--- a/src/http/modules/ngx_http_range_filter_module.c
+++ b/src/http/modules/ngx_http_range_filter_module.c
@@ -654,7 +654,13 @@ ngx_http_range_singlepart_body(ngx_http_request_t *r,
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"http range body skip");
+ if (buf->in_file) {
+ buf->file_pos = buf->file_last;
+ }
+
buf->pos = buf->last;
+ buf->sync = 1;
+
continue;
}