mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 02:40:28 +00:00
Use currentHealth consistently in getHealth()
Closes gh-9832
This commit is contained in:
committed by
Andy Wilkinson
parent
39b4ecdf63
commit
d18e452fcd
+1
-1
@@ -165,7 +165,7 @@ public class HealthMvcEndpoint extends AbstractEndpointMvcAdapter<HealthEndpoint
|
||||
private Health getHealth(HttpServletRequest request, Principal principal) {
|
||||
Health currentHealth = getCurrentHealth();
|
||||
if (exposeHealthDetails(request, principal)) {
|
||||
return this.cachedHealth.health;
|
||||
return currentHealth;
|
||||
}
|
||||
return Health.status(currentHealth.getStatus()).build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user