]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: convert the <from> argument of h1-case-adjust to lower case
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 14:05:00 +0000 (16:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:10:27 +0000 (19:10 +0200)
commit30dd1c05f5d73f4d9f753b3e6f93208a9260d1d1
treed5f0a2ba0ccf3946048dd8e0c0e7eb903b10b2b0
parentbdc4b82d16a87c1b730c2565bf5c3fdd4a46b976
BUG/MINOR: mux-h1: convert the <from> argument of h1-case-adjust to lower case

The "h1-case-adjust" global directive (and the file loaded with
"h1-case-adjust-file") takes the header name to match in lower case, as
specified in the documentation, but it was not checked. So with:

    h1-case-adjust X-Up X-Up

the rule was accepted without any warning but never matched since header
names are looked up in lower case, and "x-up" was still emitted. Let's
convert <from> to lower case before inserting it in the map, which also
makes duplicate detection work regardless of the case.

It could be backported to all supported versions.
src/mux_h1.c