]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: filters: Detect cache+compression config on legacy HTTP streams
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Jan 2019 14:03:22 +0000 (15:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jan 2019 10:32:23 +0000 (11:32 +0100)
commitff17b183fe06867b37e9dba286bfa8e69e58f614
tree3a28834fc1bca2ef726a88fd6e1446326ba11840
parent1d3613a0318d5745fecc1ed26861ff8497159643
BUG/MINOR: filters: Detect cache+compression config on legacy HTTP streams

On legacy HTTP streams, it is forbidden to use the compression with the
cache. When the compression filter is explicitly specified, the detection works
as expected and such configuration are rejected at startup. But it does not work
when the compression filter is implicitly defined. To fix the bug, the implicit
declaration of the compression filter is checked first, before calling .check()
callback of each filters.

This patch should be backported to 1.9.
src/filters.c