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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 30193ef8ec Fix backport
30193ef8ec is described below

commit 30193ef8ec95386e2e95deb49419095d76195307
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Aug 28 11:30:16 2026 +0100

    Fix backport
---
 .../catalina/valves/TestCrawlerSessionManagerValveIntegration.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/test/org/apache/catalina/valves/TestCrawlerSessionManagerValveIntegration.java
 
b/test/org/apache/catalina/valves/TestCrawlerSessionManagerValveIntegration.java
index 7dbb0aaa90..015e0675f5 100644
--- 
a/test/org/apache/catalina/valves/TestCrawlerSessionManagerValveIntegration.java
+++ 
b/test/org/apache/catalina/valves/TestCrawlerSessionManagerValveIntegration.java
@@ -19,6 +19,7 @@ package org.apache.catalina.valves;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.security.Principal;
+import java.util.Arrays;
 import java.util.Base64;
 import java.util.HashMap;
 import java.util.List;
@@ -122,9 +123,9 @@ public class TestCrawlerSessionManagerValveIntegration 
extends TomcatBaseTest {
 
     private static Map<String,List<String>> headers(String userAgent, String 
authorization) {
         Map<String,List<String>> headers = new HashMap<>();
-        headers.put("user-agent", List.of(userAgent));
+        headers.put("user-agent", Arrays.asList(userAgent));
         if (authorization != null) {
-            headers.put("authorization", List.of(authorization));
+            headers.put("authorization", Arrays.asList(authorization));
         }
         return headers;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to