Mercurial > hg > nginx
comparison src/http/modules/ngx_http_uwsgi_module.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 | b5819529738a |
children | 2728c4e4a9ae |
comparison
equal
deleted
inserted
replaced
3666:cd6d45c0a119 | 3667:12bd9e26fadb |
---|---|
81 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, | 81 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, |
82 { ngx_null_string, 0 } | 82 { ngx_null_string, 0 } |
83 }; | 83 }; |
84 | 84 |
85 | 85 |
86 static ngx_conf_bitmask_t ngx_http_uwsgi_ignore_headers_masks[] = { | |
87 { ngx_string("X-Accel-Redirect"), NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT }, | |
88 { ngx_string("X-Accel-Expires"), NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES }, | |
89 { ngx_string("Expires"), NGX_HTTP_UPSTREAM_IGN_EXPIRES }, | |
90 { ngx_string("Cache-Control"), NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL }, | |
91 { ngx_null_string, 0 } | |
92 }; | |
93 | |
94 | |
95 ngx_module_t ngx_http_uwsgi_module; | 86 ngx_module_t ngx_http_uwsgi_module; |
96 | 87 |
97 | 88 |
98 static ngx_command_t ngx_http_uwsgi_commands[] = { | 89 static ngx_command_t ngx_http_uwsgi_commands[] = { |
99 | 90 |
328 { ngx_string("uwsgi_ignore_headers"), | 319 { ngx_string("uwsgi_ignore_headers"), |
329 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, | 320 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, |
330 ngx_conf_set_bitmask_slot, | 321 ngx_conf_set_bitmask_slot, |
331 NGX_HTTP_LOC_CONF_OFFSET, | 322 NGX_HTTP_LOC_CONF_OFFSET, |
332 offsetof(ngx_http_uwsgi_loc_conf_t, upstream.ignore_headers), | 323 offsetof(ngx_http_uwsgi_loc_conf_t, upstream.ignore_headers), |
333 &ngx_http_uwsgi_ignore_headers_masks }, | 324 &ngx_http_upstream_ignore_headers_masks }, |
334 | 325 |
335 ngx_null_command | 326 ngx_null_command |
336 }; | 327 }; |
337 | 328 |
338 | 329 |