BUG/MEDIUM: cache: Get objects from the cache only for GET and HEAD requests
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Feb 2019 09:59:33 +0000 (10:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Feb 2019 13:04:23 +0000 (14:04 +0100)
commitb3d4bca415ab90108b29b232a4ae7a892d4c48ec
tree43be546d9205aaf9aefe11930ae239abc4d5f1d1
parenta0df95747184899b289c363d1743e80e93c233d1
BUG/MEDIUM: cache: Get objects from the cache only for GET and HEAD requests

Only responses for GET requests are stored in the cache. But there is no check
on the method during the lookup. So it is possible to retrieve an object from
the cache independently of the method, from the time the key of the object
matches. Now, lookups are performed only for GET and HEAD requests.

This patch must be backportedi in 1.9.
src/cache.c