Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -240,11 +240,9 @@ static int ngx_http_gzip_body_filter(ngx ngx_http_gzip_ctx_t *ctx; ngx_http_gzip_conf_t *conf; - if (!(ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module))) { - return ngx_http_next_body_filter(r, in); - } + ctx = ngx_http_get_module_ctx(r, ngx_http_gzip_filter_module); - if (ctx->done) { + if (ctx == NULL || ctx->done) { return ngx_http_next_body_filter(r, in); }