diff --git a/src/http_ana.c b/src/http_ana.c index 9e1708288..7a9cd0bbc 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -4556,7 +4556,7 @@ int http_forward_proxy_resp(struct stream *s, int final) if (final) { htx->flags |= HTX_FL_PROXY_RESP; - if (!http_eval_after_res_rules(s)) + if (!htx_is_empty(htx) && !http_eval_after_res_rules(s)) return 0; if (s->txn->meth == HTTP_METH_HEAD)