From 8184d1b3a72c31e7e6492fc189d687ce85548279 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 4 Mar 2005 14:06:57 +0000 Subject: nginx-0.1.24-RELEASE import *) Feature: the ngx_http_ssi_filter_module supports the QUERY_STRING and DOCUMENT_URI variables. *) Bugfix: the ngx_http_autoindex_module may some times return the 404 response for existent directory, if this directory was used in "alias" directive. *) Bugfix: the ngx_http_ssi_filter_module ran incorrectly for large responses. *) Bugfix: the lack of the "Referer" header line was always accounted as valid referrer. --- src/http/ngx_http_request.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index dd104d453..d41cb8d40 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -93,7 +93,6 @@ ngx_http_header_t ngx_http_headers_in[] = { { ngx_string("Accept"), offsetof(ngx_http_headers_in_t, accept) }, { ngx_string("Accept-Language"), offsetof(ngx_http_headers_in_t, accept_language) }, - { ngx_string("Via"), offsetof(ngx_http_headers_in_t, via) }, #endif { ngx_null_string, 0 } @@ -394,7 +393,7 @@ static void ngx_http_init_request(ngx_event_t *rev) return; } - if (ngx_array_init(&r->cleanup, r->pool, 5, sizeof(ngx_http_cleanup_t)) + if (ngx_array_init(&r->cleanup, r->pool, 4, sizeof(ngx_http_cleanup_t)) == NGX_ERROR) { ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); @@ -642,7 +641,7 @@ static void ngx_http_process_request_line(ngx_event_t *rev) } - if (ngx_array_init(&r->headers_in.cookies, r->pool, 5, + if (ngx_array_init(&r->headers_in.cookies, r->pool, 2, sizeof(ngx_table_elt_t *)) == NGX_ERROR) { ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); -- cgit v1.2.3