This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 49e4c82a10d0a1eae90e8b49f1bb8258fa714180
Author: remm <[email protected]>
AuthorDate: Wed May 20 21:56:59 2026 +0200

    Java 8 fix
---
 java/org/apache/catalina/connector/Response.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/connector/Response.java 
b/java/org/apache/catalina/connector/Response.java
index 1713935cc1..bfe8f9e36a 100644
--- a/java/org/apache/catalina/connector/Response.java
+++ b/java/org/apache/catalina/connector/Response.java
@@ -864,7 +864,7 @@ public class Response implements HttpServletResponse {
     @Override
     public Collection<String> getHeaders(String name) {
         if (name == null || name.isEmpty()) {
-            return Set.of();
+            return new HashSet<>();
         }
         // Need special handling for Content-Type and Content-Length due to
         // special handling of these in coyoteResponse


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

Reply via email to