cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1509868 - in /cxf/branches/2.7.x-fixes: ./ rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Date Fri, 02 Aug 2013 21:24:57 GMT
Author: sergeyb
Date: Fri Aug  2 21:24:57 2013
New Revision: 1509868

URL: http://svn.apache.org/r1509868
Log:
Merged revisions 1509862 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1509862 | sergeyb | 2013-08-02 22:10:27 +0100 (Fri, 02 Aug 2013) | 1 line
  
  If requested entity is InputStream do not close it even if auto-close is requested
........

Modified:
    cxf/branches/2.7.x-fixes/   (props changed)
    cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
  Merged /cxf/trunk:r1509862

Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java?rev=1509868&r1=1509867&r2=1509868&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Fri Aug  2 21:24:57 2013
@@ -524,7 +524,8 @@ public abstract class AbstractClient imp
     }
     
     private boolean responseStreamCanBeClosed(Message outMessage, Class<?> cls) {
-        return MessageUtils.isTrue(outMessage.getContextualProperty("response.stream.auto.close"));
+        return cls != InputStream.class
+            && MessageUtils.isTrue(outMessage.getContextualProperty("response.stream.auto.close"));
     }    
 
     protected void completeExchange(Object response, Exchange exchange, boolean proxy) {



Mime
View raw message