]> git.kaiwu.me - nginx.git/commit
Inherit valid_unparsed_uri in cloned subrequests (ticket #1430).
authorRoman Arutyunyan <arut@nginx.com>
Mon, 20 Nov 2017 18:11:19 +0000 (21:11 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 20 Nov 2017 18:11:19 +0000 (21:11 +0300)
commit891908cd0cdf72fca7d4b3de4a8a6fa3602e5cf7
tree127e544971b45a1056e95894eda9c97ae285b153
parentde11c2ad09286fe728b357a41543f3ba219f8986
Inherit valid_unparsed_uri in cloned subrequests (ticket #1430).

Inheriting this flag will make the cloned subrequest behave consistently with
the parent.  Specifically, the upstream HTTP request and cache key created by
the proxy module may depend directly on unparsed_uri if valid_unparsed_uri flag
is set.  Previously, the flag was zero for cloned requests, which could make
background update proxy a request different than its parent and cache the result
with a different key.  For example, if client URI contained the escaped slash
character %2F, it was used as is by the proxy module in the main request, but
was unescaped in the subrequests.

Similar problems exist in the slice module.
src/http/ngx_http_core_module.c