comparison 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
comparison
equal deleted inserted replaced
2268:33556140681a 2269:7155dbb2317e
652 if (range->end <= start || range->start >= last) { 652 if (range->end <= start || range->start >= last) {
653 653
654 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 654 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
655 "http range body skip"); 655 "http range body skip");
656 656
657 if (buf->in_file) {
658 buf->file_pos = buf->file_last;
659 }
660
657 buf->pos = buf->last; 661 buf->pos = buf->last;
662 buf->sync = 1;
663
658 continue; 664 continue;
659 } 665 }
660 666
661 if (range->start > start) { 667 if (range->start > start) {
662 668