$upstream_http_... should be uncacheable

This commit is contained in:
Igor Sysoev 2007-04-19 17:55:19 +00:00
parent d9bb8e3894
commit 4c39648150

View File

@ -1304,6 +1304,7 @@ ngx_http_variables_init_vars(ngx_conf_t *cf)
if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) { if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) {
v[i].get_handler = ngx_http_upstream_header_variable; v[i].get_handler = ngx_http_upstream_header_variable;
v[i].data = (uintptr_t) &v[i].name; v[i].data = (uintptr_t) &v[i].name;
v[i].flags = NGX_HTTP_VAR_NOCACHABLE;
continue; continue;
} }