]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1-htx: Only use the path of a normalized URI to format a request line
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Oct 2019 13:43:39 +0000 (15:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Oct 2019 09:10:16 +0000 (11:10 +0200)
commit92916d343cc2c12d59db8a2a7b04ccb721fb2809
tree3f58499e1dd6069f8c3e8c10e4bbb537da4b3921
parentd7b7a1ce5082884b256cdf81c7bc2e6b7d47d7d7
MINOR: h1-htx: Only use the path of a normalized URI to format a request line

When a request start-line is converted to its raw representation, if its URI is
normalized, only the path part is used. Most of H2 clients send requests using
the absolute form (:scheme + :authority + :path), regardless the request is sent
to a proxy or not. But, when the request is relayed to an H1 origin server, it
is unusual to send it using the absolute form. And, even if the servers must
support this form, some old servers may reject it. So, for such requests, we
only get the path of the absolute URI. Most of time, it will be the right
choice. However, an option will probably by added to customize this behavior.
src/htx.c