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:
Remi Tricot-Le Breton 2020-12-03 18:19:32 +01:00 committed by William Lallemand
parent 72cffaf440
commit 51058d64a6

View File

@ -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);
}