Upgrade to Jetty 9.4.45.v20220203

Closes gh-29771
This commit is contained in:
Stephane Nicoll 2022-02-14 09:01:06 +01:00
parent 1cdb75f780
commit a99582a3bb
2 changed files with 3 additions and 3 deletions

View File

@ -899,7 +899,7 @@ bom {
] ]
} }
} }
library("Jetty", "9.4.44.v20210927") { library("Jetty", "9.4.45.v20220203") {
prohibit("[11.0.0-alpha0,)") { prohibit("[11.0.0-alpha0,)") {
because "it uses the jakarta.* namespace" because "it uses the jakarta.* namespace"
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -59,7 +59,7 @@ class SampleWebJspApplicationTests {
JettyServerCustomizer jettyServerCustomizer() { JettyServerCustomizer jettyServerCustomizer() {
return (server) -> { return (server) -> {
ContextHandler handler = (ContextHandler) server.getHandler(); ContextHandler handler = (ContextHandler) server.getHandler();
handler.addAliasCheck(new ContextHandler.ApproveAliases()); handler.addAliasCheck((path, resource) -> true);
}; };
} }