]> git.kaiwu.me - nginx.git/commitdiff
make $request_method non-cacheable
authorIgor Sysoev <igor@sysoev.ru>
Wed, 3 Mar 2010 16:14:07 +0000 (16:14 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 3 Mar 2010 16:14:07 +0000 (16:14 +0000)
src/http/ngx_http_variables.c

index 713df22309d107d5c00f29cd382decb5c5783518..f3fc9f68326e596767991140c3f05c02efe669a1 100644 (file)
@@ -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 },