Mercurial > hg > nginx
diff src/http/modules/ngx_http_gzip_filter_module.c @ 1626:7caa66b819df
fix gzip and SSL
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 08 Nov 2007 15:21:22 +0000 |
parents | 45cbc1aa8652 |
children | 775edc46ee66 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -837,12 +837,15 @@ ngx_http_gzip_body_filter(ngx_http_reque } } - if (last == NGX_AGAIN && !ctx->done) { - return NGX_AGAIN; - } + if (ctx->out == NULL) { - if (ctx->out == NULL && ctx->busy == NULL) { - return NGX_OK; + if (last == NGX_AGAIN) { + return NGX_AGAIN; + } + + if (ctx->busy == NULL) { + return NGX_OK; + } } last = ngx_http_next_body_filter(r, ctx->out);