]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Keep the Host header and the request uri synchronized
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2020 11:21:37 +0000 (13:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2020 11:32:29 +0000 (13:32 +0200)
commit39959a75e91e4b702c5bcc31eaad81d40b9f61ac
tree96cf13a544a958729e6d48c108a69160a28b9273
parent7d765dbe9ae46d3ce1dc1ae1999c733f6a6e7085
MINOR: checks: Keep the Host header and the request uri synchronized

Because in HTTP, the host header and the request authority, if any, must be
identical, we keep both synchornized. It means the right flags are set on the
HTX statrt-line calling http_update_host(). There is no header when it happens,
but it is not an issue. Then, if a Host header is inserted,
http_update_authority() is called.

Note that for now, the host header is not automatically added when required.
src/checks.c