diff src/http/modules/ngx_http_ssi_filter_module.c @ 62:0790a8599248 NGINX_0_1_31

nginx 0.1.31 *) 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; bug appeared in 0.1.30.
author Igor Sysoev <http://sysoev.ru>
date Mon, 16 May 2005 00:00:00 +0400
parents b55cbf18157e
children da9a3b14312d
line wrap: on
line diff
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -321,7 +321,6 @@ ngx_http_ssi_header_filter(ngx_http_requ
     ctx->timefmt.data = (u_char *) "%A, %d-%b-%Y %H:%M:%S %Z";
 
     r->filter_need_in_memory = 1;
-    r->filter_ssi_need_in_memory = 1;
 
     if (r->main == NULL) {
         r->headers_out.content_length_n = -1;
@@ -464,10 +463,11 @@ ngx_http_ssi_body_filter(ngx_http_reques
 
                     ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t));
 
+                    b->pos = ctx->copy_start;
+                    b->last = ctx->copy_end;
+                    b->shadow = NULL;
                     b->last_buf = 0;
                     b->recycled = 0;
-                    b->pos = ctx->copy_start;
-                    b->last = ctx->copy_end;
 
                     if (b->in_file) {
                         if (conf->min_file_chunk < (size_t) (b->last - b->pos))