]> git.kaiwu.me - haproxy.git/commit
MINOR: http-htx: condition uppercase acceptance in trailer names to HTTP_PF_UPCASE_OK
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Sep 2026 14:07:54 +0000 (16:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Sep 2026 08:08:12 +0000 (10:08 +0200)
commit94ddd9d3c567b2a3604c4539877bcfcdaab486a3
tree55fef4aeee045374368d1a97768b9adc5989d45b
parent883ba3af9068d22eb1bedf84025c9eb5c9fdc55f
MINOR: http-htx: condition uppercase acceptance in trailer names to HTTP_PF_UPCASE_OK

The trailers parser currently rejects uppercase chars in the name.
Let's add a new flag to indicate that they are OK. This will be used
by HTTP/1. However this is not sufficient, we now need to use isteqi()
instead of isteq() to compare header names.

Neither H2 nor H3 need to pass that new flag, hence why the change is
minimal.
include/haproxy/http-t.h
src/http_htx.c