From: Igor Sysoev Date: Wed, 3 Mar 2010 16:14:07 +0000 (+0000) Subject: make $request_method non-cacheable X-Git-Tag: release-0.8.34~3 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=1ee4b090911cbb9b5830ffa8271056283f756fbb;p=nginx.git make $request_method non-cacheable --- 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 },