comparison 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
comparison
equal deleted inserted replaced
2928:7b68caedea01 2929:37b7cd336fdf
2340 conf->headers_set = prev->headers_set; 2340 conf->headers_set = prev->headers_set;
2341 conf->headers_set_hash = prev->headers_set_hash; 2341 conf->headers_set_hash = prev->headers_set_hash;
2342 conf->headers_source = prev->headers_source; 2342 conf->headers_source = prev->headers_source;
2343 } 2343 }
2344 2344
2345 if (conf->headers_set_hash.buckets) { 2345 if (conf->headers_set_hash.buckets
2346 && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)))
2347 {
2346 return NGX_OK; 2348 return NGX_OK;
2347 } 2349 }
2348 2350
2349 2351
2350 conf->headers_names = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t)); 2352 conf->headers_names = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t));