Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
2078:9acbc5e7bcbd | 2079:333ef9e18a59 |
---|---|
320 b->shadow = NULL; | 320 b->shadow = NULL; |
321 b->last_buf = 0; | 321 b->last_buf = 0; |
322 b->recycled = 0; | 322 b->recycled = 0; |
323 | 323 |
324 if (b->in_file) { | 324 if (b->in_file) { |
325 b->file_last = b->file_pos + (b->last - b->start); | 325 b->file_last = b->file_pos + (b->last - ctx->buf->pos); |
326 b->file_pos += b->pos - b->start; | 326 b->file_pos += b->pos - ctx->buf->pos; |
327 } | 327 } |
328 | 328 |
329 cl->next = NULL; | 329 cl->next = NULL; |
330 *ctx->last_out = cl; | 330 *ctx->last_out = cl; |
331 ctx->last_out = &cl->next; | 331 ctx->last_out = &cl->next; |