]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-comp: Preserve HTTP_MSGF_COMPRESSIONG flag on the response
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 May 2021 07:49:20 +0000 (09:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 May 2021 07:59:00 +0000 (09:59 +0200)
commitacfd71b97aecea49bc3e3fad18d662960b750970
treee3699c7fd6e19aed76c1df30fbcebaf8b37f75b7
parenta6d3704e38b6c1cb09286e9778b6363825d65c4d
BUG/MINOR: http-comp: Preserve HTTP_MSGF_COMPRESSIONG flag on the response

This flag is set on the response when its payload is compressed by HAProxy.
It must be preserved because it may be used when the log message is emitted.

When the compression filter was refactored to support the HTX, an
optimization was added to not perform extra proessing on the trailers.
HTTP_MSGF_COMPRESSIONG flag is removed when the last data block is
compressed. It is not required, it is just an optimization and unfortunately
a bug. This optimization must be removed to preserve the flag.

This patch must be backported as far as 2.0. On the HTX is affected.
src/flt_http_comp.c