diff --git a/src/proto_http.c b/src/proto_http.c index 7bdd19d03..634a002ad 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -4237,8 +4237,8 @@ static int http_apply_redirect_rule(struct redirect_rule *rule, struct stream *s /* Trim any possible response */ res->chn->buf->i = 0; res->next = res->sov = 0; - /* If not already done, don't perform any connection establishment */ - channel_dont_connect(req->chn); + /* let the server side turn to SI_ST_CLO */ + channel_shutw_now(req->chn); } else { /* keep-alive not possible */ if (unlikely(txn->flags & TX_USE_PX_CONN)) {