commit | 51058d64a68d147f8396016c1917e64f5d3e5c72 | [log] [tgz] |
---|---|---|
author | Remi Tricot-Le Breton <rlebreton@haproxy.com> | Thu Dec 03 18:19:32 2020 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Fri Dec 04 10:21:56 2020 +0100 |
tree | 5ec6a8d29299007747ae09e2cfb433c5730212a8 | |
parent | 72cffaf4405682d76e52dddfce57137b4a9cd395 [diff] |
MINOR: cache: Consider invalid Age values as stale Do not store responses that have an invalid age header (non numerical, negative ...).
diff --git a/src/cache.c b/src/cache.c index e0560e5..df6bd33 100644 --- a/src/cache.c +++ b/src/cache.c
@@ -897,6 +897,8 @@ if (unlikely(object->age > true_maxage)) goto out; } + else + goto out; http_remove_header(htx, &ctx); }