Merge pull request #19423 from dreis2211

* gh-19423:
  Fix compilation error

Closes gh-19423
This commit is contained in:
Andy Wilkinson 2019-12-20 17:10:57 +00:00
commit 88d76a24d0
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