Commit 6df1be3f authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '1.5.x'

parents fef7953e be535103
......@@ -164,7 +164,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();
}
......
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