Fix compilation error

See gh-19423
This commit is contained in:
dreis2211 2019-12-20 17:21:03 +01:00 committed by Andy Wilkinson
parent 7551a79e80
commit 4b10462464
1 changed files with 1 additions and 1 deletions

View File

@ -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