MINOR: cache: Do not store responses with an unknown encoding
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 7 Jan 2021 13:50:51 +0000 (14:50 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 15 Jan 2021 21:33:05 +0000 (22:33 +0100)
commit6ca89162dc881df8fecd7713ca1fe5dbaa66b315
tree7f07c0bc5fc1e295c3f3ea2b1917615dbb0ed2f0
parentb62b78be131de1848d71350d369deac07daf448a
MINOR: cache: Do not store responses with an unknown encoding

If a server varies on the accept-encoding header and it sends a response
with an encoding we do not know (see parse_encoding_value function), we
will not store it. This will prevent unexpected errors caused by
cache collisions that could happen in accept_encoding_hash_cmp.
doc/configuration.txt
reg-tests/cache/vary_accept_encoding.vtc
src/cache.c