]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: "option checkcache" fails with the no-cache header
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jul 2013 10:46:56 +0000 (12:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Jul 2013 10:49:28 +0000 (12:49 +0200)
commit5b15f9004d13b8a7e5e665929cad97a2c0beebd3
treee3999c41ad5e785a72da373f5a4e72d06af09d3b
parent0fc36e3ae99ccbe6de88cf64093f3045e526d088
BUG/MEDIUM: http: "option checkcache" fails with the no-cache header

The checkcache option checks for cacheable responses with a set-cookie
header. Since the response processing code was refactored in 1.3.8
(commit a15645d4), the check was broken because the no-cache value
is only checked as no-cache="set-cookie", and not alone.

Thanks to HervĂ© Commowick for reporting this stupid bug!

The fix should be backported to 1.4 and 1.3.
src/proto_http.c