Mercurial > hg > nginx
changeset 3463:0904bd7d5b37
make $request_method non-cacheable
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 03 Mar 2010 16:14:07 +0000 |
parents | 546fdeb20a67 |
children | 7f99ce2247f9 |
files | src/http/ngx_http_variables.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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 },