comparison src/http/modules/ngx_http_gzip_filter.c @ 243:bf2faf694c19

nginx-0.0.1-2004-01-28-23:38:54 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 28 Jan 2004 20:38:54 +0000
parents 574bea0142be
children 70e1c7d2b83d
comparison
equal deleted inserted replaced
242:5d4f49dc8de5 243:bf2faf694c19
238 ngx_hunk_t *h; 238 ngx_hunk_t *h;
239 ngx_chain_t *cl; 239 ngx_chain_t *cl;
240 ngx_http_gzip_ctx_t *ctx; 240 ngx_http_gzip_ctx_t *ctx;
241 ngx_http_gzip_conf_t *conf; 241 ngx_http_gzip_conf_t *conf;
242 242
243 if (!(ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module))) { 243 ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module);
244 return ngx_http_next_body_filter(r, in); 244
245 } 245 if (ctx == NULL || ctx->done) {
246
247 if (ctx->done) {
248 return ngx_http_next_body_filter(r, in); 246 return ngx_http_next_body_filter(r, in);
249 } 247 }
250 248
251 conf = ngx_http_get_module_loc_conf(r, ngx_http_gzip_filter_module); 249 conf = ngx_http_get_module_loc_conf(r, ngx_http_gzip_filter_module);
252 250