cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1406847 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java
Date Wed, 07 Nov 2012 22:26:51 GMT
Author: dkulp
Date: Wed Nov  7 22:26:51 2012
New Revision: 1406847

URL: http://svn.apache.org/viewvc?rev=1406847&view=rev
Log:
[CXF-4618] CLose input stream after done copying
Patch from Steve Hodecker applied

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java?rev=1406847&r1=1406846&r2=1406847&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/DataSourceProvider.java
Wed Nov  7 22:26:51 2012
@@ -76,7 +76,7 @@ public class DataSourceProvider<T> imple
         if (useDataSourceContentType) {    
             setContentTypeIfNeeded(type, headers, ds.getContentType());
         }
-        IOUtils.copy(ds.getInputStream(), os);
+        IOUtils.copyAndCloseInput(ds.getInputStream(), os);
     }
     
     private void setContentTypeIfNeeded(MediaType type, 



Mime
View raw message