summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-04-19 17:55:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-04-19 17:55:19 +0000
commit4c3964815086edbd68eec049352735815de63195 (patch)
tree4a80047b7972ee3b1e48fecf30bdae9363a1508b
parentd9bb8e38947494f45a133064b4a1a11a56ba13d2 (diff)
downloadnginx-4c3964815086edbd68eec049352735815de63195.tar.gz
nginx-4c3964815086edbd68eec049352735815de63195.tar.bz2
$upstream_http_... should be uncacheable
-rw-r--r--src/http/ngx_http_variables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index c3e1f6069..5aac76b76 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1304,6 +1304,7 @@ ngx_http_variables_init_vars(ngx_conf_t *cf)
if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) {
v[i].get_handler = ngx_http_upstream_header_variable;
v[i].data = (uintptr_t) &v[i].name;
+ v[i].flags = NGX_HTTP_VAR_NOCACHABLE;
continue;
}