comparison src/http/modules/ngx_http_gzip_filter.c @ 154:eac26585476e

nginx-0.0.1-2003-10-22-11:05:29 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 22 Oct 2003 07:05:29 +0000
parents c71aeb75c071
children 46eb23d9471d
comparison
equal deleted inserted replaced
153:c71aeb75c071 154:eac26585476e
285 } else if (ctx->hunks < conf->bufs.num) { 285 } else if (ctx->hunks < conf->bufs.num) {
286 ngx_test_null(ctx->out_hunk, 286 ngx_test_null(ctx->out_hunk,
287 ngx_create_temp_hunk(r->pool, conf->bufs.size, 287 ngx_create_temp_hunk(r->pool, conf->bufs.size,
288 0, 0), 288 0, 0),
289 ngx_http_gzip_error(ctx)); 289 ngx_http_gzip_error(ctx));
290 ctx->out_hunk->tag = (ngx_hunk_tag_t)
291 &ngx_http_gzip_filter_module;
290 ctx->out_hunk->type |= NGX_HUNK_RECYCLED; 292 ctx->out_hunk->type |= NGX_HUNK_RECYCLED;
291 ctx->hunks++; 293 ctx->hunks++;
292 294
293 } else { 295 } else {
294 break; 296 break;
415 417
416 if (last == NGX_ERROR) { 418 if (last == NGX_ERROR) {
417 return ngx_http_gzip_error(ctx); 419 return ngx_http_gzip_error(ctx);
418 } 420 }
419 421
420 ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out); 422 ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out,
423 (ngx_hunk_tag_t) &ngx_http_gzip_filter_module);
421 ctx->last_out = &ctx->out; 424 ctx->last_out = &ctx->out;
422 } 425 }
423 } 426 }
424 427
425 428