Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_sub_filter_module.c @ 2113:e94149d5de37 stable-0.5
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 12:01:35 +0000 |
parents | 4b54072c0848 |
children |
comparison
equal
deleted
inserted
replaced
2112:4c30d2380d81 | 2113:e94149d5de37 |
---|---|
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; |