Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 2929:37b7cd336fdf
inherit proxy_set_header, proxy_hide_header, and fastcgi_hide_header
only if cache settings are similar
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Jun 2009 12:33:11 +0000 |
parents | 55ceaef03d34 |
children | fe484c0be7c0 |
line wrap: on
line diff
--- 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->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; }