]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-rules: Make replace-header and replace-value custom actions
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Dec 2019 08:20:34 +0000 (09:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit92d34fe38d6ab504724cca9cda093917dacc9210
treeab144d9b60bce6d0e2033228bb843cd32417dff7
parent2c22a6923ae620c7e60615132ec4846be5c1bdd9
MINOR: http-rules: Make replace-header and replace-value 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_REPLACE_HDR and ACT_HTTP_REPLACE_VAL are removed. The action type is
now set to 0 to evaluate the whole header or to 1 to evaluate every
comma-delimited values.

The function http_transform_header_str() is renamed to http_replace_hdrs() to be
more explicit and the function http_transform_header() is removed. In fact, this
last one is now more or less the new action function.

The lua code has been updated accordingly to use http_replace_hdrs().
include/proto/http_ana.h
include/types/action.h
src/hlua.c
src/http_act.c
src/http_ana.c