From: Christopher Faulet Date: Wed, 8 Jul 2026 15:06:04 +0000 (+0200) Subject: MINOR: compression: Rely on HTX block flags to detect the end of message X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=6ebb6f4ae2dc1cbeea9d6ab4ffa344184eb28f23;p=haproxy.git MINOR: compression: Rely on HTX block flags to detect the end of message Thanks to previous patches, instead of testing HTX_FL_HAS_EOM flag to detect the end of the message, we now rely on the flags on the HTX block. --- diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c index 55feab80d..a3ace6a5a 100644 --- a/src/flt_http_comp.c +++ b/src/flt_http_comp.c @@ -297,7 +297,7 @@ comp_http_payload(struct stream *s, struct filter *filter, struct http_msg *msg, switch (type) { case HTX_BLK_DATA: /* it is the last data block */ - last = ((!next && (htx->flags & HTX_FL_HAS_EOM)) || (next && htx_get_blk_type(next) != HTX_BLK_DATA)); + last = ((blk->flags & HTX_BLK_FL_EOM) || (next && htx_get_blk_type(next) != HTX_BLK_DATA)); v = htx_get_blk_value(htx, blk); v = istadv(v, offset); if (v.len > len) {