]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-rules: Make set-header and add-header custom actions
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Dec 2019 08:33:38 +0000 (09:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitd1f27e3394e7f4dfc9f83a47d34d6c608acc3abe
tree0b4d91085f826c2205063b12d75ea5813964b5dd
parent92d34fe38d6ab504724cca9cda093917dacc9210
MINOR: http-rules: Make set-header and add-header custom actions

Now, these actions use their own dedicated function and are no longer handled
"in place" during the HTTP rules evaluation. Thus the action names
ACT_HTTP_SET_HDR and ACT_HTTP_ADD_VAL are removed. The action type is now set to
0 to set a header (so remove existing ones if any and add a new one) or to 1 to
add a header (add without remove).
include/types/action.h
src/http_act.c
src/http_ana.c