You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2012/01/23 00:59:40 UTC

svn commit: r1234651 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java

Author: maartenc
Date: Sun Jan 22 23:59:40 2012
New Revision: 1234651

URL: http://svn.apache.org/viewvc?rev=1234651&view=rev
Log:
Possible fix for IVY-1320?

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java?rev=1234651&r1=1234650&r2=1234651&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java Sun Jan 22 23:59:40 2012
@@ -129,7 +129,7 @@ public abstract class AbstractURLHandler
             throws IOException {
         InputStream result = null;
         
-        if ("gzip".equals(encoding)) {
+        if ("gzip".equals(encoding) || "x-gzip".equals(encoding)) {
             result = new GZIPInputStream(in);
         } else if ("deflate".equals(encoding)) {
             // There seems to be 2 variants of the "deflate"-encoding.