ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r951171 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java
Date Thu, 03 Jun 2010 21:31:05 GMT
Author: maartenc
Date: Thu Jun  3 21:31:05 2010
New Revision: 951171

URL: http://svn.apache.org/viewvc?rev=951171&view=rev
Log:
Don't check content length if content encoding was "gzip" (IVY-1194)

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

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java?rev=951171&r1=951170&r2=951171&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Thu Jun  3 21:31:05
2010
@@ -168,6 +168,7 @@ public class BasicURLHandler extends Abs
             InputStream inStream;
             if ("gzip".equals(srcConn.getContentEncoding())) {
                 inStream = new GZIPInputStream(srcConn.getInputStream());
+                contentLength = -1;
             } else {
                 inStream = srcConn.getInputStream();
             }



Mime
View raw message