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:57:38 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes e85582a9b -> f0edf07ad


[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/f0edf07a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f0edf07a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f0edf07a

Branch: refs/heads/3.0.x-fixes
Commit: f0edf07adc9e94f6f99a77282dcd8d6df4b2499e
Parents: e85582a
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:57:24 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/f0edf07a/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 995b295..5ad3ba9 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
@@ -391,7 +391,7 @@ public class ClientProxyImpl extends AbstractClient implements
         }
         List<MediaType> types = new ArrayList<MediaType>();
         for (String s : headers) {
-            types.add(JAXRSUtils.toMediaType(s));
+            types.addAll(JAXRSUtils.parseMediaTypes(s));
         }
         return types;
     }


Mime
View raw message