diff src/http/modules/ngx_http_gzip_filter_module.c @ 2292:51487a60eba2

fix the previous commit
author Igor Sysoev <igor@sysoev.ru>
date Thu, 06 Nov 2008 19:54:54 +0000
parents e9a1cddf2aaa
children bbfaeb220e90
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
@@ -356,7 +356,7 @@ ngx_http_gzip_body_filter(ngx_http_reque
         }
 
         if (ctx->out == NULL) {
-            return NGX_AGAIN;
+            return ctx->busy ? NGX_AGAIN : NGX_OK;
         }
 
         if (!ctx->gzheader) {