cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [1/2] git commit: Updating Binary provider to keep the response input stream opened if requested, default is true
Date Thu, 24 Jul 2014 14:01:10 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes d607ef353 -> f4f3b9c5e


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/f4f3b9c5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f4f3b9c5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f4f3b9c5

Branch: refs/heads/3.0.x-fixes
Commit: f4f3b9c5e65a5e8f4d9b699c3710175f1ef95c4d
Parents: a1370a6
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 17:00:45 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/f4f3b9c5/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