cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r809190 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
Date Sat, 29 Aug 2009 18:33:21 GMT
Author: sergeyb
Date: Sat Aug 29 18:33:21 2009
New Revision: 809190

URL: http://svn.apache.org/viewvc?rev=809190&view=rev
Log:
CXF-2408 : applying a patch on behalf of Leonard Lu

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java?rev=809190&r1=809189&r2=809190&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
Sat Aug 29 18:33:21 2009
@@ -263,7 +263,7 @@
                 String cType = 
                     bodyClass != null && InjectionUtils.isPrimitive(bodyClass) 
                         ? MediaType.TEXT_PLAIN : ori.getConsumeTypes().isEmpty() 
-                    || ori.getConsumeTypes().get(0).equals(MediaType.WILDCARD) 
+                    || ori.getConsumeTypes().get(0).equals(MediaType.WILDCARD_TYPE) 
                     ? MediaType.APPLICATION_XML : ori.getConsumeTypes().get(0).toString();
  
                 headers.putSingle(HttpHeaders.CONTENT_TYPE, cType);
             }



Mime
View raw message