]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Insert headers and trailers before corresponding end-of block
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 13:15:53 +0000 (15:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commit0a9ecebdaaa36710cb4aae3a7a1feb8d9f9cf07f
tree73b71427998b014f125074a265b9b74883233ce6
parent83024657c8a15ef257effb0ede2cdf128a91bd00
MEDIUM: htx: Insert headers and trailers before corresponding end-of block

htx_add_header() and htx_add_trailer() were updated to automatically insert
the block at the right place, just before the corresponding end-of block.
Indeed, it is invalid, unexepected and probably unsupported to insert a
header after the EOH block without moving it. So it is easier to handle it
in HTX function directly.

It means that http_add_header() was simplified.
include/haproxy/htx.h
src/http_htx.c