cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Updating Binary provider to keep the response input stream opened if requested, default is true
Date Thu, 24 Jul 2014 13:59:18 GMT
Repository: cxf
Updated Branches:
  refs/heads/master eac181502 -> c9a58c10a


Updating Binary provider to keep the response input stream opened if requested, default is
true


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c9a58c10
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c9a58c10
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c9a58c10

Branch: refs/heads/master
Commit: c9a58c10a509a264f728a4767fbdfec02c2f13c8
Parents: eac1815
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jul 24 16:59:04 2014 +0300
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jul 24 16:59:04 2014 +0300

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c9a58c10/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java
index 48bf561..8fd4bec 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/BinaryDataProvider.java
@@ -59,7 +59,7 @@ public class BinaryDataProvider<T> extends AbstractConfigurableProvider
     
     private static final int BUFFER_SIZE = 4096;
     private boolean reportByteArraySize;
-    private boolean closeResponseInputStream;
+    private boolean closeResponseInputStream = true;
     public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations,
MediaType mt) {
         return byte[].class.isAssignableFrom(type)
                || InputStream.class.isAssignableFrom(type)


Mime
View raw message