diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-06-08 12:33:11 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-08 12:33:11 +0000 |
commit | 83c93ba1093191ea73e894b747cc181168adb4f7 (patch) | |
tree | 05ce44ec6a750838a4a1da278bfb736e2dc372d3 /src/http/modules/ngx_http_proxy_module.c | |
parent | 2d65078eff03defa7c852a72b48d89393dbd50d3 (diff) | |
download | nginx-83c93ba1093191ea73e894b747cc181168adb4f7.tar.gz nginx-83c93ba1093191ea73e894b747cc181168adb4f7.zip |
inherit proxy_set_header, proxy_hide_header, and fastcgi_hide_header
only if cache settings are similar
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 5f48a0c82..f0aadb402 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -2342,7 +2342,9 @@ ngx_http_proxy_merge_headers(ngx_conf_t *cf, ngx_http_proxy_loc_conf_t *conf, conf->headers_source = prev->headers_source; } - if (conf->headers_set_hash.buckets) { + if (conf->headers_set_hash.buckets + && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL))) + { return NGX_OK; } |