This is an automated email from the ASF dual-hosted git repository. markt-asf pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 82b9ef45c668e13374967c84860cd0af6b8718e9 Author: Mark Thomas <[email protected]> AuthorDate: Tue Aug 11 15:53:46 2026 +0100 f --- test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java index 663944104d..9bbfa30339 100644 --- a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java +++ b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java @@ -18,6 +18,7 @@ package org.apache.tomcat.websocket; import java.io.IOException; import java.net.URI; +import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; @@ -278,7 +279,7 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest { if (rotateSessionID) { Assert.assertNotNull(sessionCookie.get()); Map<String,List<String>> requestHeaders = new HashMap<>(); - requestHeaders.put("Cookie", List.of(sessionCookie.get())); + requestHeaders.put("Cookie", Arrays.asList(sessionCookie.get())); Map<String,List<String>> responseHeaders = new HashMap<>(); int status = getUrl("http://localhost:" + getPort() + URI_PROTECTED + "/changeSessionID", new ByteChunk(), requestHeaders, responseHeaders); @@ -304,7 +305,7 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest { Assert.assertNotNull(sessionCookie.get()); Map<String,List<String>> requestHeaders = new HashMap<>(); - requestHeaders.put("Cookie", List.of(sessionCookie.get())); + requestHeaders.put("Cookie", Arrays.asList(sessionCookie.get())); int status = getUrl("http://localhost:" + getPort() + URI_PROTECTED + "/invalidate", new ByteChunk(), requestHeaders, null); Assert.assertEquals(HttpServletResponse.SC_OK, status); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
