aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-03-03 16:14:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-03-03 16:14:07 +0000
commit1ee4b090911cbb9b5830ffa8271056283f756fbb (patch)
tree6516bac9f6f63a3101e3656a0358ee2f0f410fa8 /src/http/ngx_http_variables.c
parentff1a888caf3979fe207f3ad586414491377d210f (diff)
downloadnginx-1ee4b090911cbb9b5830ffa8271056283f756fbb.tar.gz
nginx-1ee4b090911cbb9b5830ffa8271056283f756fbb.zip
make $request_method non-cacheable
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 713df2230..f3fc9f683 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -196,7 +196,8 @@ static ngx_http_variable_t ngx_http_core_variables[] = {
{ ngx_string("server_name"), NULL, ngx_http_variable_server_name, 0, 0, 0 },
{ ngx_string("request_method"), NULL,
- ngx_http_variable_request_method, 0, 0, 0 },
+ ngx_http_variable_request_method, 0,
+ NGX_HTTP_VAR_NOCACHEABLE, 0 },
{ ngx_string("remote_user"), NULL, ngx_http_variable_remote_user, 0, 0, 0 },