abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckopp...@apache.org
Subject svn commit: r1065254 - /abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
Date Sun, 30 Jan 2011 12:20:45 GMT
Author: ckoppelt
Date: Sun Jan 30 12:20:45 2011
New Revision: 1065254

URL: http://svn.apache.org/viewvc?rev=1065254&view=rev
Log:
improved patch

Modified:
    abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java

Modified: abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java?rev=1065254&r1=1065253&r2=1065254&view=diff
==============================================================================
--- abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
(original)
+++ abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
Sun Jan 30 12:20:45 2011
@@ -143,11 +143,10 @@ public class CommonsResponse extends Abs
      * decode Content-Encodings and will automatically release the response when the stream
has been read fully.
      */
     public InputStream getInputStream() throws IOException {
-        String methodName = method.getName();
         if (in == null ) {
             String ce = getHeader("Content-Encoding");
             in = method.getResponseBodyAsStream();
-            if (ce != null && !methodName.equalsIgnoreCase("HEAD")) {
+            if (ce != null && in != null) {
                 in = CompressionUtil.getDecodingInputStream(in, ce);
             }
             in = new AutoReleasingInputStream(method, in);



Mime
View raw message