From 403d2443a38f0df9da01c6649ddfd49ab4b6a7e2 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 26 May 2005 18:12:40 +0000 Subject: nginx-0.1.34-RELEASE import *) Bugfix: the worker process may got caught in an endless loop if the big response part were include by SSI. *) Bugfix: the variables set by the "set" directive were not available in SSI. *) Feature: the "autoindex_localtime" directive. *) Bugfix: the empty value of the "proxy_set_header" directive forbids the client request header line passing. --- src/http/modules/ngx_http_proxy_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/modules/ngx_http_proxy_module.c') diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 92dd6cc9c..0211dab06 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1576,6 +1576,10 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) *name = src[i].key; + if (src[i].value.len == 0) { + continue; + } + if (ngx_http_script_variables_count(&src[i].value) == 0) { copy = ngx_array_push_n(conf->headers_set_len, sizeof(ngx_http_script_copy_code_t)); -- cgit