diff src/http/modules/ngx_http_gunzip_filter_module.c @ 5432:c52a761a2029

Gzip, gunzip: flush pending data when incoming chain is NULL.
author Yichun Zhang <agentzh@gmail.com>
date Mon, 28 Oct 2013 15:01:36 -0700
parents 41bf14321133
children 2bb2571d6e34
line wrap: on
line diff
--- a/src/http/modules/ngx_http_gunzip_filter_module.c
+++ b/src/http/modules/ngx_http_gunzip_filter_module.c
@@ -199,7 +199,7 @@ ngx_http_gunzip_body_filter(ngx_http_req
         }
     }
 
-    if (ctx->nomem) {
+    if (ctx->nomem || in == NULL) {
 
         /* flush busy buffers */