diff src/http/modules/ngx_http_range_filter_module.c @ 424:44a61c599bb2

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 15 Oct 2008 15:39:40 +0400
parents 77df96611112 b246022ef454
children 8fbdd980b527
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
@@ -693,7 +693,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;
         }