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:54 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes b0ad4130d -> 9c3ae3276


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

Branch: refs/heads/3.1.x-fixes
Commit: 9c3ae327698295f89fccde8e2ddb35c38743d38d
Parents: b0ad413
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:56:39 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/9c3ae327/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 765cd27..985d209 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<MediaType>();
         for (String s : headers) {
-            types.add(JAXRSUtils.toMediaType(s));
+            types.addAll(JAXRSUtils.parseMediaTypes(s));
         }
         return types;
     }


Mime
View raw message