]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cache: do not try to retrieve host-less requests from the cache
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Dec 2017 15:32:43 +0000 (16:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Dec 2017 16:56:17 +0000 (17:56 +0100)
commit7704b1e89a202c5b09d89fbc50f042a18113a839
treefbed9b414727acc1b769f7e02907d2e3d11c468b
parent0ad8e0dfeaad3fe64890b6cbdcff23f1b123d5a1
BUG/MEDIUM: cache: do not try to retrieve host-less requests from the cache

All HTTP/1.1 requests the Host header share the same hash key 0 and
will be return the first cached object. Let's add the check on the call
to sha1_hosturi() to prevent this from happening.

This must be backported to 1.8.
src/cache.c