]> git.kaiwu.me - nginx.git/commit
Proxy: made proxy_pass with variables more consistent.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 23 Dec 2011 16:04:09 +0000 (16:04 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 23 Dec 2011 16:04:09 +0000 (16:04 +0000)
commitaa4492612bb4e80621680eeacb496c45166ac455
treeaadbf5f463e2728a03cb3cabd746298b29f95227
parent2f6e243499d3ef0a8bbb811c68b1a169a4f8b71c
Proxy: made proxy_pass with variables more consistent.

If proxy_pass was used with variables and there was no URI component,
nginx always used unparsed URI.  This isn't consistent with "no variables"
case, where e.g. rewrites are applied even if there is no URI component.

Fix is to use the same logic in both cases, i.e. only use unparsed URI if
it's valid and request is the main one.
src/http/modules/ngx_http_proxy_module.c