comparison 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
comparison
equal deleted inserted replaced
3666:cd6d45c0a119 3667:12bd9e26fadb
353 { ngx_string("POST"), NGX_HTTP_POST }, 353 { ngx_string("POST"), NGX_HTTP_POST },
354 { ngx_null_string, 0 } 354 { ngx_null_string, 0 }
355 }; 355 };
356 356
357 357
358 ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks[] = {
359 { ngx_string("X-Accel-Redirect"), NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT },
360 { ngx_string("X-Accel-Expires"), NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES },
361 { ngx_string("Expires"), NGX_HTTP_UPSTREAM_IGN_EXPIRES },
362 { ngx_string("Cache-Control"), NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL },
363 { ngx_null_string, 0 }
364 };
365
366
358 ngx_int_t 367 ngx_int_t
359 ngx_http_upstream_create(ngx_http_request_t *r) 368 ngx_http_upstream_create(ngx_http_request_t *r)
360 { 369 {
361 ngx_http_upstream_t *u; 370 ngx_http_upstream_t *u;
362 371