Ensure that a TTL of zero is honoured by HealthMvcEndpoint
See gh-2630
This commit is contained in:
parent
c849a0aba1
commit
c1eea4cf40
|
@ -151,7 +151,7 @@ public class HealthMvcEndpoint implements MvcEndpoint, EnvironmentAware {
|
||||||
if (this.cached == null) {
|
if (this.cached == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return (accessTime - this.lastAccess) > this.delegate.getTimeToLive();
|
return (accessTime - this.lastAccess) >= this.delegate.getTimeToLive();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean exposeHealthDetails(Principal principal) {
|
private boolean exposeHealthDetails(Principal principal) {
|
||||||
|
|
Loading…
Reference in New Issue