cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1471329 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
Date Wed, 24 Apr 2013 09:41:41 GMT
Author: sergeyb
Date: Wed Apr 24 09:41:41 2013
New Revision: 1471329

URL: http://svn.apache.org/r1471329
Log:
[CXF-4984] Setting Content-Type to application/octet-stream if it is not available

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java?rev=1471329&r1=1471328&r2=1471329&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java Wed
Apr 24 09:41:41 2013
@@ -401,7 +401,7 @@ public final class JAXRSUtils {
         
         MediaType requestType;
         try {
-            requestType = getMethod ? MediaType.WILDCARD_TYPE : toMediaType(requestContentType);
+            requestType = getMethod ? MediaType.APPLICATION_OCTET_STREAM_TYPE : toMediaType(requestContentType);
         } catch (IllegalArgumentException ex) {
             throw new NotSupportedException(ex);
         }



Mime
View raw message