]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: tcpcheck: refresh the start-line after updating the authority
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 04:40:03 +0000 (04:40 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Sep 2026 12:05:26 +0000 (14:05 +0200)
commit8c38a4b4e1790ae5ddb43287489c5e6bcfbe0a28
treea465617867066a8de5bd51e776626242a2c0bd20
parent3d416630ceff56885d98fa823e9e88b2862f1a0e
BUG/MINOR: tcpcheck: refresh the start-line after updating the authority

When an HTTP health-check request was built with an absolute URI, each
"host" header set by "http-check send" updated the authority of the URI with
http_update_authority(). This rewrote the start-line, which could move it
elsewhere in the HTX message. So, in tcpcheck_eval_send(), the start-line
pointer <sl> must be renewed in that case.

Let's retrieve the start-line again after each authority update. A reg-test
was added.

This must be backported to all supported versions.
reg-tests/checks/http-check-send-authority.vtc [new file with mode: 0644]
src/tcpcheck.c