From d52477ff6da227552cd77ffcdf19941d5005ca13 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 16 May 2005 13:53:20 +0000 Subject: 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. --- src/http/modules/ngx_http_gzip_filter_module.c | 2 +- src/http/modules/ngx_http_ssi_filter_module.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c index 1f7c2328c..f7cb92c18 100644 --- a/src/http/modules/ngx_http_gzip_filter_module.c +++ b/src/http/modules/ngx_http_gzip_filter_module.c @@ -367,7 +367,7 @@ ngx_http_gzip_header_filter(ngx_http_request_t *r) r->headers_out.content_length = NULL; } - r->filter_need_in_memory = 1; + r->main_filter_need_in_memory = 1; return ngx_http_next_header_filter(r); } diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index acaeeeda6..2992ff59d 100644 --- 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_request_t *r) 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_request_t *r, ngx_chain_t *in) ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t)); - b->last_buf = 0; - b->recycled = 0; b->pos = ctx->copy_start; b->last = ctx->copy_end; + b->shadow = NULL; + b->last_buf = 0; + b->recycled = 0; if (b->in_file) { if (conf->min_file_chunk < (size_t) (b->last - b->pos)) -- cgit