MINOR: http-rules: Return an error when custom actions return ACT_RET_ERR
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Dec 2019 08:36:11 +0000 (09:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commit28160e73ddd5ae2b04065aec29ccbceb074e9929
tree0cd53c4b192783d6483c573ed14c8c933a43e285
parent491ab5e2e5234c15fda964aa79e5a0be7e127365
MINOR: http-rules: Return an error when custom actions return ACT_RET_ERR

Thanks to the commit "MINOR: actions: Use ACT_RET_CONT code to ignore an error
from a custom action", it is now possible to trigger an error from a custom
action in http rules. Now, when a custom action returns the ACT_RET_ERR code
from an http-request rule, an error 400 is returned. And from an http-response
rule, an error 502 is returned.

Be careful if this patch is backported. The other mentioned patch must be
backported first.
src/http_ana.c