diff --git a/src/http_ana.c b/src/http_ana.c index ecf417e5a1..ca05a146f1 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -1012,7 +1012,7 @@ int http_request_forward_body(struct stream *s, struct channel *req, int an_bit) * response. Otherwise, let a change to forward the response * first. */ - if (htx_is_empty(htxbuf(&s->res.buf))) { + if (txn->rsp.msg_state >= HTTP_MSG_BODY && htx_is_empty(htxbuf(&s->res.buf))) { COUNT_IF(1, "Server abort during request forwarding"); goto return_srv_abort; }