summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-08 12:33:11 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-08 12:33:11 +0000
commit83c93ba1093191ea73e894b747cc181168adb4f7 (patch)
tree05ce44ec6a750838a4a1da278bfb736e2dc372d3 /src/http/ngx_http_upstream.c
parent2d65078eff03defa7c852a72b48d89393dbd50d3 (diff)
downloadnginx-83c93ba1093191ea73e894b747cc181168adb4f7.tar.gz
nginx-83c93ba1093191ea73e894b747cc181168adb4f7.tar.bz2
inherit proxy_set_header, proxy_hide_header, and fastcgi_hide_header
only if cache settings are similar
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 747084528..87df57169 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -4085,7 +4085,9 @@ ngx_http_upstream_hide_headers_hash(ngx_conf_t *cf,
{
conf->hide_headers_hash = prev->hide_headers_hash;
- if (conf->hide_headers_hash.buckets) {
+ if (conf->hide_headers_hash.buckets
+ && ((conf->cache == NULL) == (prev->cache == NULL)))
+ {
return NGX_OK;
}