]> git.kaiwu.me - haproxy.git/commit
MINOR: flt-http-comp: Use the filter helpers for implicit compression checks
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:06:28 +0000 (18:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commit5949341c241bf4e35f678718fda3e191391624c3
treec9a1b28cef255a78563f67bea9a6bc94967380e0
parentb9a2cb3e3f95107cf0baea7422674edb52b7992a
MINOR: flt-http-comp: Use the filter helpers for implicit compression checks

Rework check_implicit_http_comp_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 compression 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 appended at the end of the legacy list.
src/flt_http_comp.c