comparison src/http/modules/ngx_http_sub_filter_module.c @ 2105:c5e8484b22ab stable-0.6

r2080 merge: 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, 07 Jul 2008 11:33:29 +0000
parents c10e7b563fb4
children
comparison
equal deleted inserted replaced
2104:744ae0917c7a 2105:c5e8484b22ab
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;