Skip to content

Commit f1bbce1

Browse files
lachlan-robertsbclozel
authored andcommitted
Do not modify AliasChecks list from Jetty WebAppContext
Closes gh-29555 Signed-off-by: Lachlan Roberts <[email protected]>
1 parent 000cbfa commit f1bbce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private void customizeSsl(Server server, InetSocketAddress address) {
218218
*/
219219
protected final void configureWebAppContext(WebAppContext context, ServletContextInitializer... initializers) {
220220
Assert.notNull(context, "Context must not be null");
221-
context.getAliasChecks().clear();
221+
context.clearAliasChecks();
222222
context.setTempDirectory(getTempDirectory());
223223
if (this.resourceLoader != null) {
224224
context.setClassLoader(this.resourceLoader.getClassLoader());

0 commit comments

Comments
 (0)