mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MEDIUM: http-ana: Don't eval http-after-response ruleset on empty messages
It is not possible on response comming from a server, but an errorfile may be empty. In this case, the http-after-response ruleset must not be evaluated because it is totally unexpected to manipulate headers on an empty HTX message. This patch must be backported everywhere the http-after-response rules are supported, i.e as far as 2.2.
This commit is contained in:
parent
bdec3ba796
commit
aab1b67383
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue