You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2023/03/17 16:52:21 UTC

[cxf] 08/12: The header map should be case insensitive

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

dkulp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit e1cef2226fe7f6277d7e50be1775db126396861c
Author: Daniel Kulp <da...@kulp.com>
AuthorDate: Thu Mar 16 15:28:35 2023 -0400

    The header map should be case insensitive
---
 .../jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
index 933b6b6ac4..be51d582c7 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/ResponseImpl.java
@@ -208,7 +208,7 @@ public final class ResponseImpl extends Response {
 
     @Override
     public MultivaluedMap<String, String> getStringHeaders() {
-        MetadataMap<String, String> headers = new MetadataMap<>(metadata.size());
+        MetadataMap<String, String> headers = new MetadataMap<>(false, true);
         for (Map.Entry<String, List<Object>> entry : metadata.entrySet()) {
             String headerName = entry.getKey();
             headers.put(headerName, toListOfStrings(entry.getValue()));