Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 5546:f385349d584b
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.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 30 Jan 2014 18:57:11 +0400 |
parents | 17134d29782e |
children | 188481078faf |
comparison
equal
deleted
inserted
replaced
5545:01e2a5bcdd8f | 5546:f385349d584b |
---|---|
610 uscf = uscfp[i]; | 610 uscf = uscfp[i]; |
611 | 611 |
612 if (uscf->host.len == host->len | 612 if (uscf->host.len == host->len |
613 && ((uscf->port == 0 && u->resolved->no_port) | 613 && ((uscf->port == 0 && u->resolved->no_port) |
614 || uscf->port == u->resolved->port) | 614 || uscf->port == u->resolved->port) |
615 && ngx_memcmp(uscf->host.data, host->data, host->len) == 0) | 615 && ngx_strncasecmp(uscf->host.data, host->data, host->len) == 0) |
616 { | 616 { |
617 goto found; | 617 goto found; |
618 } | 618 } |
619 } | 619 } |
620 | 620 |