MINOR: http-ana: Do a defrag on unaligned HTX message when waiting for payload

When we are waiting for the request or response payload, it is usually
because the payload will be analyzed in a way or another. So, perform a
defrag if necessary. This should ease payload analyzis.
This commit is contained in:
Christopher Faulet 2026-02-10 18:33:02 +01:00
parent 4f27a72d19
commit f559c202fb

View file

@ -4326,6 +4326,9 @@ enum rule_result http_wait_for_msg_body(struct stream *s, struct channel *chn,
end:
if (ret != HTTP_RULE_RES_YIELD)
chn->analyse_exp = TICK_ETERNITY;
if (htx->flags & (HTX_FL_FRAGMENTED|HTX_FL_UNORDERED))
htx_defrag(htx, NULL, 0);
return ret;
abort: