mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
MINOR: cache: Consider invalid Age values as stale
Do not store responses that have an invalid age header (non numerical, negative ...).
This commit is contained in:
parent
72cffaf440
commit
51058d64a6
1 changed files with 2 additions and 0 deletions
|
|
@ -897,6 +897,8 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px,
|
|||
if (unlikely(object->age > true_maxage))
|
||||
goto out;
|
||||
}
|
||||
else
|
||||
goto out;
|
||||
http_remove_header(htx, &ctx);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue