cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r726100 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java
Date Fri, 12 Dec 2008 19:57:42 GMT
Author: gawor
Date: Fri Dec 12 11:57:42 2008
New Revision: 726100

URL: http://svn.apache.org/viewvc?rev=726100&view=rev
Log:
respect content type of data source

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java?rev=726100&r1=726099&r2=726100&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/DispatchOutDatabindingInterceptor.java
Fri Dec 12 11:57:42 2008
@@ -282,6 +282,7 @@
                         message.put(AttachmentOutInterceptor.WRITE_ATTACHMENTS, Boolean.TRUE);
                         new AttachmentOutInterceptor().handleMessage(message);
                     }
+                    message.put(Message.CONTENT_TYPE, dataSource.getContentType());
                     OutputStream os = message.getContent(OutputStream.class);
                     doTransform(dataSource, os);
                     os.flush();



Mime
View raw message