mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 03:33:36 -04:00
BUG/MINOR: http-act: set-status() must check the response message, not the request
action_http_set_status() checks for soft rewrite on the request message by mistake instead of the response message. This could possibly cause a rewrite failure when soft rewrite is enabled since it will not be seen there, though the impact is extremely low. It can be backported.
This commit is contained in:
parent
8941cc5f6d
commit
cbdbc96e36
1 changed files with 1 additions and 1 deletions
|
|
@ -656,7 +656,7 @@ static enum act_return action_http_set_status(struct act_rule *rule, struct prox
|
|||
if (s->sv_tgcounters)
|
||||
_HA_ATOMIC_INC(&s->sv_tgcounters->failed_rewrites);
|
||||
|
||||
if (!(s->txn.http->req.flags & HTTP_MSGF_SOFT_RW)) {
|
||||
if (!(s->txn.http->rsp.flags & HTTP_MSGF_SOFT_RW)) {
|
||||
if (!(s->flags & SF_ERR_MASK))
|
||||
s->flags |= SF_ERR_PRXCOND;
|
||||
return ACT_RET_ERR;
|
||||
|
|
|
|||
Loading…
Reference in a new issue