]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-htx: Keep the Host header and the request start-line synchronized
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Oct 2019 13:24:52 +0000 (15:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Oct 2019 09:05:31 +0000 (11:05 +0200)
commitd7b7a1ce5082884b256cdf81c7bc2e6b7d47d7d7
tree1b6a21bdecf0b8ec6cd255ee562924678262b982
parentfe451fb9ef2c1f332bf507076b43363b92df4e41
MEDIUM: http-htx: Keep the Host header and the request start-line synchronized

In HTTP, the request authority, if any, and the Host header must be identical
(excluding any userinfo subcomponent and its "@" delimiter). So now, during the
request analysis, when the Host header is updated, the start-line is also
updated. The authority of an absolute URI is changed accordingly. Symmetrically,
if the URI is changed, if it contains an authority, then then Host header is
also changed. In this latter case, the flags of the start-line are also updated
to reflect the changes on the URI.
src/http_htx.c