]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-rules: Handle all message rewrites the same way
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Dec 2019 16:18:42 +0000 (17:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commite00d06c99fa734beeb84642aa52d9bc75f33719b
tree12005cc7bf5416584bfd501d081f5533eea5119b
parenta00071e2e5aa9946d2762a484bea298db2ae344d
MINOR: http-rules: Handle all message rewrites the same way

In HTTP rules, error handling during a rewrite is now handle the same way for
all rules. First, allocation errors are reported as internal errors. Then, if
soft rewrites are allowed, rewrite errors are ignored and only the
failed_rewrites counter is incremented. Otherwise, when strict rewrites are
mandatory, interanl errors are returned.

For now, only soft rewrites are supported. Note also that the warning sent to
notify a rewrite failure was removed. It will be useless once the strict
rewrites will be possible.
include/proto/http_ana.h
src/http_act.c
src/http_ana.c