Browse Source

Fix compilation error

See gh-19423
pull/19424/head
dreis2211 6 years ago committed by Andy Wilkinson
parent
commit
4b10462464
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java

@ -188,7 +188,7 @@ public class TomcatWebServerFactoryCustomizer @@ -188,7 +188,7 @@ public class TomcatWebServerFactoryCustomizer
// addresses
valve.setInternalProxies(remoteIpProperties.getInternalProxies());
try {
valve.setHostHeader(tomcatProperties.getHostHeader());
valve.setHostHeader(remoteIpProperties.getHostHeader());
}
catch (NoSuchMethodError ex) {
// Avoid failure with war deployments to Tomcat 8.5 before 8.5.44 and

Loading…
Cancel
Save