]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: compression: properly disable request when setting response
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2026 09:00:11 +0000 (11:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2026 09:55:45 +0000 (11:55 +0200)
commit055726a4c94535aa9aeec435aa8145070f2106b8
tree01737ede24c1c30629cbac5e50f3e3a238a88be7
parent686f8db79bdf9dbef743b8238d5081b7d6a81ffb
BUG/MINOR: compression: properly disable request when setting response

In 2.8, commit ead43fe4f2 ("MEDIUM: compression: Make it so we can
compress requests as well.") added the ability to independently enable
compression on request and/or response. However there's a bug in the
"compression direction response" case, which preserves only the request
flag and adds the response direction instead of clearing the request
flag, so this directive would clear offload and make it impossible to
disable request if it was already previously enabled.

This can be backported to stable releases as far as 2.8.
src/flt_http_comp.c