]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache/htx: Return only the headers of cached objects to HEAD requests
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Feb 2019 10:08:34 +0000 (11:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Feb 2019 13:04:23 +0000 (14:04 +0100)
commitf0dd03745647f91bb4adba1412e51a828cd112bc
tree5c7e89627109c407331d2fc9b32b83ab57c27f47
parentb3d4bca415ab90108b29b232a4ae7a892d4c48ec
BUG/MINOR: cache/htx: Return only the headers of cached objects to HEAD requests

The body of a cached object must not be sent in response to a HEAD request. This
works for the legacy HTTP because the parsing is performed by HTTP analyzers
_AND_ because the connection is closed at the end of the transaction. So the
body is ignored. But the applet send it. For the HTX, the applet must skip the
body explicitly.

This patch must be backported to 1.9.
src/cache.c