]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-rules: test the binary header manipulation actions
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:34:20 +0000 (20:34 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:55:57 +0000 (16:55 +0200)
commit4c3e22e485c3ab147d4a6ff8fa30942f51ef8ebd
tree76140040d9da0cfd2d68ba1b7785bc2a29d0cdf4
parent70f915e26cec86caf3077be0866b245721757b6b
REGTESTS: http-rules: test the binary header manipulation actions

The add-headers-bin, set-headers-bin and del-headers-bin actions had no
coverage at all. The test saves the incoming header block with
req.hdrs_bin, drops a few headers and restores them from the saved
block, with and without the "prefix" filter, and checks on the server
side which headers made it through.

The lists passed to del-headers-bin are built by hand with the bin()
fetch so that the varint encoding of the header names is exercised too,
with the default exact matching and with the "beg" one.
reg-tests/http-rules/headers_bin.vtc [new file with mode: 0644]