Mercurial > hg > nginx-vendor-0-5
comparison src/http/ngx_http_variables.c @ 196:8759b346e431 NGINX_0_3_45
nginx 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 É 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.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 06 May 2006 00:00:00 +0400 |
parents | 3689cd4e3228 |
children | 3866d57d9cfd |
comparison
equal
deleted
inserted
replaced
195:b65e20aebc10 | 196:8759b346e431 |
---|---|
808 | 808 |
809 static ngx_int_t | 809 static ngx_int_t |
810 ngx_http_variable_request_method(ngx_http_request_t *r, | 810 ngx_http_variable_request_method(ngx_http_request_t *r, |
811 ngx_http_variable_value_t *v, uintptr_t data) | 811 ngx_http_variable_value_t *v, uintptr_t data) |
812 { | 812 { |
813 if (r->method_name.data) { | 813 if (r->main->method_name.data) { |
814 if (r->upstream && r->upstream->method.len) { | 814 v->len = r->main->method_name.len; |
815 v->len = r->upstream->method.len; | |
816 v->data = r->upstream->method.data; | |
817 | |
818 } else { | |
819 v->len = r->method_name.len; | |
820 v->data = r->method_name.data; | |
821 } | |
822 | |
823 v->valid = 1; | 815 v->valid = 1; |
824 v->no_cachable = 0; | 816 v->no_cachable = 0; |
825 v->not_found = 0; | 817 v->not_found = 0; |
818 v->data = r->main->method_name.data; | |
826 | 819 |
827 } else { | 820 } else { |
828 v->not_found = 1; | 821 v->not_found = 1; |
829 } | 822 } |
830 | 823 |