Align with Servlet 6.0 and introduce support for Jakarta WebSocket 2.1
Includes corresponding build upgrade to Tomcat 10.1.1 and Undertow 2.3.0 (while retaining runtime compatibility with Tomcat 10.0 and Undertow 2.2) Closes gh-29435 Closes gh-29436
This commit is contained in:
@@ -98,6 +98,7 @@ public class DispatcherServletTests {
|
||||
complexConfig.addInitParameter("publishContext", "false");
|
||||
complexConfig.addInitParameter("class", "notWritable");
|
||||
complexConfig.addInitParameter("unknownParam", "someValue");
|
||||
complexConfig.addInitParameter("jakarta.servlet.http.legacyDoHead", "true");
|
||||
|
||||
simpleDispatcherServlet = new DispatcherServlet();
|
||||
simpleDispatcherServlet.setContextClass(SimpleWebApplicationContext.class);
|
||||
|
||||
@@ -110,7 +110,9 @@ public abstract class AbstractServletHandlerMethodTests {
|
||||
}
|
||||
};
|
||||
|
||||
servlet.init(new MockServletConfig());
|
||||
MockServletConfig config = new MockServletConfig();
|
||||
config.addInitParameter("jakarta.servlet.http.legacyDoHead", "true");
|
||||
servlet.init(config);
|
||||
|
||||
return wac;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user