Commit 99971a65 authored by Christian Dupuis's avatar Christian Dupuis

Fix HTTP status code mapping in HealthMvcEndpoint

refs #1264
parent 3145edff
...@@ -156,7 +156,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware, ...@@ -156,7 +156,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ConditionalOnExpression("${endpoints.health.enabled:true}") @ConditionalOnExpression("${endpoints.health.enabled:true}")
public HealthMvcEndpoint healthMvcEndpoint(HealthEndpoint delegate) { public HealthMvcEndpoint healthMvcEndpoint(HealthEndpoint delegate) {
HealthMvcEndpoint healthMvcEndpoint = new HealthMvcEndpoint(delegate); HealthMvcEndpoint healthMvcEndpoint = new HealthMvcEndpoint(delegate);
if (this.healthMvcEndpointProperties.getMapping() != null) { if (this.healthMvcEndpointProperties.getMapping() != null
&& this.healthMvcEndpointProperties.getMapping().size() > 0) {
healthMvcEndpoint.setStatusMapping(this.healthMvcEndpointProperties healthMvcEndpoint.setStatusMapping(this.healthMvcEndpointProperties
.getMapping()); .getMapping());
} }
......
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