Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_range_filter_module.c @ 2269:7155dbb2317e
fix r2122:
*) update file buf pointers,
*) avoid "zero buf" alert
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Oct 2008 15:38:26 +0000 |
parents | b39c0040b3e4 |
children | a6d6d762c554 |
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 @@ -654,7 +654,13 @@ ngx_http_range_singlepart_body(ngx_http_ 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; }