# HG changeset patch # User Igor Sysoev # Date 1194535282 0 # Node ID 7caa66b819df9256fde5e2777782020f0d7c3745 # Parent 91c08c1f46544bcda02f7b2b9fb5cc6f34e09635 fix gzip and SSL diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c --- 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);