Commit c1eea4cf authored by Andy Wilkinson's avatar Andy Wilkinson

Ensure that a TTL of zero is honoured by HealthMvcEndpoint

See gh-2630
parent c849a0ab
......@@ -151,7 +151,7 @@ public class HealthMvcEndpoint implements MvcEndpoint, EnvironmentAware {
if (this.cached == null) {
return true;
}
return (accessTime - this.lastAccess) > this.delegate.getTimeToLive();
return (accessTime - this.lastAccess) >= this.delegate.getTimeToLive();
}
private boolean exposeHealthDetails(Principal principal) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment