Mercurial > hg > nginx
changeset 1626:7caa66b819df
fix gzip and SSL
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 08 Nov 2007 15:21:22 +0000 |
parents | 91c08c1f4654 |
children | bf5521329069 |
files | src/http/modules/ngx_http_gzip_filter_module.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gzip_filter_module.c Thu Nov 08 15:20:56 2007 +0000 +++ b/src/http/modules/ngx_http_gzip_filter_module.c Thu Nov 08 15:21:22 2007 +0000 @@ -837,12 +837,15 @@ } } - 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);