From 4b1046246412e1d514b830278c83e25d8f4412b7 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Fri, 20 Dec 2019 17:21:03 +0100 Subject: [PATCH] Fix compilation error See gh-19423 --- .../web/embedded/TomcatWebServerFactoryCustomizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java index 1a0edf4e8a..8fb4ba636b 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java @@ -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