You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/04/03 10:56:08 UTC

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

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 <sb...@gmail.com>
Authored: Mon Apr 3 11:55:50 2017 +0100
Committer: Sergey Beryozkin <sb...@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;
     }