diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-05-06 16:28:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-05-06 16:28:56 +0000 |
commit | 44d872259c6f1a3aab86d2fbbba4525f12b3d878 (patch) | |
tree | cc791866bbd92587d2d2c8b9ed2b8e66c15db4d3 /src/http/ngx_http_variables.c | |
parent | 9a27196bd4dd2ac6c6c86aa786ae0b0aad84e610 (diff) | |
download | nginx-release-0.3.45.tar.gz nginx-release-0.3.45.zip |
nginx-0.3.45-RELEASE importrelease-0.3.45
*) Feature: the "ssl_verify_client", "ssl_verify_depth", and
"ssl_client_certificate" directives.
*) Change: the $request_method variable now returns the main request
method.
*) Change: the ° symbol codes were changed in koi-win conversion
table.
*) Feature: the euro and N symbols were added to koi-win conversion
table.
*) Bugfix: if nginx distributed the requests among several backends and
some backend failed, then requests intended for this backend was
directed to one live backend only instead of being distributed among
the rest.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 0f162a70e..83f2adc0b 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -810,19 +810,12 @@ static ngx_int_t ngx_http_variable_request_method(ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data) { - if (r->method_name.data) { - if (r->upstream && r->upstream->method.len) { - v->len = r->upstream->method.len; - v->data = r->upstream->method.data; - - } else { - v->len = r->method_name.len; - v->data = r->method_name.data; - } - + if (r->main->method_name.data) { + v->len = r->main->method_name.len; v->valid = 1; v->no_cachable = 0; v->not_found = 0; + v->data = r->main->method_name.data; } else { v->not_found = 1; |