]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http-htx: Make authority update optional when replacing a header value
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Apr 2026 09:15:27 +0000 (11:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 08:03:39 +0000 (10:03 +0200)
commit9368f4eaa29da50aeb026680636bc66f8220c0b9
tree8a5ad7c675e7a0e6b1561368193ce70241a4c8da
parent8d2ea3c1ceb341e51c2a8e06482052cfd44cc8cf
MEDIUM: http-htx: Make authority update optional when replacing a header value

When a header value is replaced, a test is performed to verify if the
authority must be updated or not. But there are some places where we know it
is useless. First, when the caller know the header is not the host
header. Then when the host header value is updated because the authority was
changed.

So now, an extra argument was added to http_replace_header() and
http_replace_header_value() functions to specify if the authority update
must be performed or not.
include/haproxy/http_htx.h
src/flt_http_comp.c
src/http_ana.c
src/http_htx.c