You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by ck...@apache.org on 2011/01/30 13:20:45 UTC

svn commit: r1065254 - /abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java

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);