diff options
author | Ruslan Ermilov <ru@nginx.com> | 2014-01-30 18:57:11 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2014-01-30 18:57:11 +0400 |
commit | 8d288ec49ae1e7087732562d142fdfc257ac5541 (patch) | |
tree | 899d5ae4de0ea5b456e89eefd968b311c8a9719b /src | |
parent | 4ae889c9f2c6c79402630aa2197bfbdd8cc42fd5 (diff) | |
download | nginx-8d288ec49ae1e7087732562d142fdfc257ac5541.tar.gz nginx-8d288ec49ae1e7087732562d142fdfc257ac5541.zip |
Proxy: fixed upstream search by proxy_pass with variables.
If "proxy_pass" is specified with variables, the resulting
hostname is looked up in the list of upstreams defined in
configuration. The search was case-sensitive, as opposed
to the case of "proxy_pass" specified without variables.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 0524144f2..26b576441 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -612,7 +612,7 @@ ngx_http_upstream_init_request(ngx_http_request_t *r) if (uscf->host.len == host->len && ((uscf->port == 0 && u->resolved->no_port) || uscf->port == u->resolved->port) - && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) + && ngx_strncasecmp(uscf->host.data, host->data, host->len) == 0) { goto found; } |