aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-08 15:21:22 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-11-08 15:21:22 +0000
commitd47063bd90f5dce1b6717202a9f0315cc421025f (patch)
tree8f100cbb91f052b0e93765bc96c0c12623cf1a7a /src
parent408dfc17144358d72964f3ddf091b2faf6836e9a (diff)
downloadnginx-d47063bd90f5dce1b6717202a9f0315cc421025f.tar.gz
nginx-d47063bd90f5dce1b6717202a9f0315cc421025f.zip
fix gzip and SSL
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_gzip_filter_module.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c
index cb5397ad2..42dfa5021 100644
--- 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_request_t *r, ngx_chain_t *in)
}
}
- 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);