diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-07-02 09:25:38 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-07-02 09:25:38 +0000 |
commit | 7e14b50c289ede7ac0b268a82ee896e3e294b4cd (patch) | |
tree | 294b93cb7b51f9ad56072b5976b6b12967b98933 /src/http/ngx_http_upstream.c | |
parent | 187538d1ebc25341ad611ba8d26b42b3e2e9de67 (diff) | |
download | nginx-7e14b50c289ede7ac0b268a82ee896e3e294b4cd.tar.gz nginx-7e14b50c289ede7ac0b268a82ee896e3e294b4cd.zip |
use shared ngx_http_upstream_ignore_headers_masks[]
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index ffed2c00c..a59076fb2 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -355,6 +355,15 @@ ngx_conf_bitmask_t ngx_http_upstream_cache_method_mask[] = { }; +ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks[] = { + { ngx_string("X-Accel-Redirect"), NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT }, + { ngx_string("X-Accel-Expires"), NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES }, + { ngx_string("Expires"), NGX_HTTP_UPSTREAM_IGN_EXPIRES }, + { ngx_string("Cache-Control"), NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL }, + { ngx_null_string, 0 } +}; + + ngx_int_t ngx_http_upstream_create(ngx_http_request_t *r) { |