From cbdbc96e363977ff5b8afc7b25307421ee9446ff Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 11 May 2026 15:01:30 +0200 Subject: [PATCH] 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. --- src/http_act.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_act.c b/src/http_act.c index 2dcbe89d2..9b9b5207d 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -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; -- 2.47.3