]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: cache: Use rxresphdrs to only get headers for 304 responses
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Feb 2023 15:12:43 +0000 (16:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Feb 2023 15:12:45 +0000 (16:12 +0100)
commit34cffede3aeb6f687dfff81ccce9936ae457fd63
tree0cc5968fd105157fec3f5f42ab01fa6a2826a6d5
parentbe5cc766b0184747c1578eabd4fbee04d7d26222
REGTESTS: cache: Use rxresphdrs to only get headers for 304 responses

304 responses contains "Content-length" or "Transfer-encoding"
headers. rxresp action expects to get a payload in this case, even if 304
reponses must not have any payload. A workaround was added to remove these
headers from the 304 responses. However, a better solution is to only get
the response headers from clients using rxresphdrs action.

If a payload is erroneously added in these reponses, the scripts will fail
the same way. So it is safe.
reg-tests/cache/if-modified-since.vtc
reg-tests/cache/if-none-match.vtc