Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 3667:12bd9e26fadb
use shared ngx_http_upstream_ignore_headers_masks[]
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 02 Jul 2010 09:25:38 +0000 |
parents | 84905c7b2aa7 |
children | 1f5841b1fcd7 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Thu Jul 01 12:56:32 2010 +0000 +++ b/src/http/ngx_http_upstream.c Fri Jul 02 09:25:38 2010 +0000 @@ -355,6 +355,15 @@ }; +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) {