Mercurial > hg > nginx
diff src/http/ngx_http_variables.c @ 3463:0904bd7d5b37
make $request_method non-cacheable
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 03 Mar 2010 16:14:07 +0000 |
parents | 7a1958778351 |
children | b4a14d50388b |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c Wed Mar 03 15:14:04 2010 +0000 +++ b/src/http/ngx_http_variables.c Wed Mar 03 16:14:07 2010 +0000 @@ -196,7 +196,8 @@ { 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 },