Mercurial > hg > nginx
diff src/http/modules/ngx_http_proxy_module.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/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 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; }