cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7310] Updating ClientProxyImpl to parse individual accept values same was it is done with Path
Date Mon, 03 Apr 2017 10:56:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f03e63133 -> cbf0ca69e


[CXF-7310] Updating ClientProxyImpl to parse individual accept values same was it is done
with Path


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cbf0ca69
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cbf0ca69
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cbf0ca69

Branch: refs/heads/master
Commit: cbf0ca69edb54ce58fc8063dfaa03fa497004ec6
Parents: f03e631
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Apr 3 11:55:50 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Apr 3 11:55:50 2017 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cbf0ca69/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
index 99bf10b..35a4c78 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
@@ -396,7 +396,7 @@ public class ClientProxyImpl extends AbstractClient implements
         }
         List<MediaType> types = new ArrayList<>();
         for (String s : headers) {
-            types.add(JAXRSUtils.toMediaType(s));
+            types.addAll(JAXRSUtils.parseMediaTypes(s));
         }
         return types;
     }


Mime
View raw message