]> git.kaiwu.me - haproxy.git/commit
REG-TESTS: decompression: check the response header rewriting
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Aug 2026 08:24:54 +0000 (10:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Aug 2026 15:26:38 +0000 (17:26 +0200)
commite4db9821c343caaa05a9485bd8284d26ba474039
tree030f59ed5feee39029ecf3755349305e28e3dd1b
parent6715b5c85d539d4851afc6f99adf99c8e72577f2
REG-TESTS: decompression: check the response header rewriting

Covers two of the fixes in this series: an unrelated "Vary" value that is a
prefix of "accept-encoding" ("Vary: Accept") must survive, a strong ETag
must be weakened since the representation changed, and a content coding
which is only a prefix of a configured algorithm ("Content-Encoding: g")
must not engage decompression.

The case-insensitive comparison of the coding is not covered: vtest always
emits its own lower-cased Content-Encoding next to the one given with -hdr,
so the response carries both and the test would pass either way.
reg-tests/decompression/headers.vtc [new file with mode: 0644]