Skip to content

Commit

Permalink
Upstream: hide_headers_hash inherited regardless of cache settings.
Browse files Browse the repository at this point in the history
Dependency on cache settings existed prior to 2728c4e4a9ae (0.8.44)
as Set-Cookie header was automatically hidden from responses when
using cache.  This is no longer the case, and hide_headers_hash can
be safely inherited regardless of cache settings.
  • Loading branch information
mdounin committed Oct 14, 2016
1 parent 7184160 commit f5dcb06
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f5dcb06

Please sign in to comment.