]> git.kaiwu.me - nginx.git/commitdiff
r1627 merge:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 12 Dec 2007 21:01:43 +0000 (21:01 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 12 Dec 2007 21:01:43 +0000 (21:01 +0000)
fix gzip and SSL

src/http/modules/ngx_http_gzip_filter_module.c

index cb5397ad236c4fc632303a9b9d0e77ad932013f6..42dfa5021425c7bf3d8f2294ccca7a08c8b4c756 100644 (file)
@@ -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);