Mercurial > hg > nginx
diff src/http/modules/ngx_http_sub_filter_module.c @ 2079:333ef9e18a59
fix error when response parsed by sub filter, then by SSI filter
and some response parts are output as file buffers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 Jun 2008 19:10:06 +0000 |
parents | 2a92804f4109 |
children | 8c6521eedf84 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_sub_filter_module.c +++ b/src/http/modules/ngx_http_sub_filter_module.c @@ -322,8 +322,8 @@ ngx_http_sub_body_filter(ngx_http_reques b->recycled = 0; if (b->in_file) { - b->file_last = b->file_pos + (b->last - b->start); - b->file_pos += b->pos - b->start; + b->file_last = b->file_pos + (b->last - ctx->buf->pos); + b->file_pos += b->pos - ctx->buf->pos; } cl->next = NULL;