nginx-0.1.31-RELEASE import

    *) Bugfix: the response encrypted by SSL may not transferred complete.

    *) Bugfix: errors while processing FastCGI response by SSI.

    *) Bugfix: errors while using SSI and gzipping.

    *) Bugfix: the redirect with the 301 code was transferred without
       response body; the bug had appeared in 0.1.30.
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 4cbf915..37a176a 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -384,7 +384,7 @@
             c->ssl->no_rcv_shut = 1;
         }
 
-        r->filter_need_in_memory = 1;
+        r->main_filter_need_in_memory = 1;
     }
 
 #endif