]> git.kaiwu.me - haproxy.git/commit
MINOR: flt-decomp: Use the filter helpers for implicit decompression checks
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:06:25 +0000 (18:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commitb9a2cb3e3f95107cf0baea7422674edb52b7992a
tree7d2e890186f4a228010d7131a482b6a3355a5881
parented744bc07b2e92e7343e472f5b8e4d71a9cc5e35
MINOR: flt-decomp: Use the filter helpers for implicit decompression checks

Rework check_implicit_decomp_flt() to walk the filter configurations with
flt_foreach_conf() in global order and keep the request/response detection,
the cache ordering and the explicit declaration detection in a dedicated
callback.

This makes the implicit request and response decompression filters work
with the filter instances, where the legacy filter_configs list is empty.
In instance mode the implicit declaration rules are enforced by the
instance parsers, so the legacy-specific checks are skipped.

The locally declared implicit filter configurations preserve the previous
behavior and are inserted at the beginning of the legacy list.
src/flt_decomp.c