aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index ceb798fec..c2afa0cd5 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -6021,12 +6021,7 @@ 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 (NGX_HTTP_CACHE)
- && ((conf->cache == 0) == (prev->cache == 0))
-#endif
- )
- {
+ if (conf->hide_headers_hash.buckets) {
return NGX_OK;
}