]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-ana/http-rules: Use dedicated function to forward internal responses
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jan 2020 08:28:11 +0000 (09:28 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 13:55:34 +0000 (14:55 +0100)
commita72a7e49e8827bc40d5d71ba79439f033a84d3d6
treeafd617f80b4eabdb3b1e553f7d6c3b8c41f0d2a6
parentef70e25035d74d32fa91e724ccca64d9ec672a2f
MINOR: http-ana/http-rules: Use dedicated function to forward internal responses

Call http_forward_proxy_resp() function when an internal response is
returned. It concerns redirect, auth and error reponses. But also 100-Continue
and 103-Early-Hints responses. For errors, there is a subtlety. if the forward
fails, an HTTP 500 error is generated if it is not already an internal
error. For now http_forward_proxy_resp() cannot fail. But it will be possible
when the new ruleset applied on all responses will be added.
src/http_act.c
src/http_ana.c