|
|
@ -92,7 +92,6 @@ public class ServletWebServerFactoryAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnClass(name = "org.apache.catalina.startup.Tomcat")
|
|
|
|
@ConditionalOnClass(name = "org.apache.catalina.startup.Tomcat")
|
|
|
|
@ConditionalOnMissingFilterBean(ForwardedHeaderFilter.class)
|
|
|
|
|
|
|
|
ForwardedHeaderFilterCustomizer tomcatForwardedHeaderFilterCustomizer(ServerProperties serverProperties) {
|
|
|
|
ForwardedHeaderFilterCustomizer tomcatForwardedHeaderFilterCustomizer(ServerProperties serverProperties) {
|
|
|
|
return (filter) -> filter.setRelativeRedirects(serverProperties.getTomcat().isUseRelativeRedirects());
|
|
|
|
return (filter) -> filter.setRelativeRedirects(serverProperties.getTomcat().isUseRelativeRedirects());
|
|
|
|
}
|
|
|
|
}
|
|
|
|