]> 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, 24 Jul 2026 09:58:25 +0000 (11:58 +0200)
commita98518a803d00c54b2c830319fdfbd3189aca97a
treea0c6585fb9d0890f57d99d9a7c9014453a6785f4
parentd8792523dfb2c358694e96405d79b443d40b9196
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