]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http_act: Rework *-headers-bin actions
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 12:02:30 +0000 (14:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 14:34:37 +0000 (16:34 +0200)
commit8c00df74487df1daa0cbe93801f6869a36e00548
treec266485af26ec3d549db9c5c4075361126ebd449
parent2adcdbacc2f00e1797564b392f30a1b661658a17
MEDIUM: http_act: Rework *-headers-bin actions

These actions were added recently and it appeared the way binary headers
were retrieved could be simplified.

First, there is no reason to retrieve a base64 encoded string. It is
possible to rely on the binary string directly. "b64dec" converter can be
used to perform a base64 decoding if necessary.

Then, using a log-format string is quite overkill and probably
conterintuitive. Most of time, the headers will be retrieved from a
variable. So a sample expression is easier to use. Thanks to the previous
patch, it is quite easy to achieve.

This patch relies on the commit "MINOR: action: Add a sample expression
field in arguments used by HTTP actions". The documentation was updated
accordingly.
doc/configuration.txt
src/http_act.c