incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r580173 - in /incubator/ivy/core/trunk: CHANGES.txt src/java/org/apache/ivy/util/url/BasicURLHandler.java
Date Thu, 27 Sep 2007 22:05:24 GMT
Author: maartenc
Date: Thu Sep 27 15:05:24 2007
New Revision: 580173

URL: http://svn.apache.org/viewvc?rev=580173&view=rev
Log:
IMPROVEMENT: BasicURLHandler should use method=head for getURLInfo (IVY-611) (thanks to Jim
Bonanno)

Modified:
    incubator/ivy/core/trunk/CHANGES.txt
    incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java

Modified: incubator/ivy/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/CHANGES.txt?rev=580173&r1=580172&r2=580173&view=diff
==============================================================================
--- incubator/ivy/core/trunk/CHANGES.txt (original)
+++ incubator/ivy/core/trunk/CHANGES.txt Thu Sep 27 15:05:24 2007
@@ -16,6 +16,7 @@
 	Karl Baum
 	Mikkel Bjerg
 	Jeffrey Blattman
+	Jim Bonanno
 	Matthieu Brouillard
 	Kristian Cibulskis
 	Scott Goldstein
@@ -61,6 +62,7 @@
 - FIX: Resolving dynamic version fails when using multiple patterns if only one pattern find
a revision and others don't (IVY-602)
 - FIX: Invalid character in IvyRetrieveTest causing most tests to fail (IVY-604)
 
+- IMPROVEMENT: BasicURLHandler should use method=head for getURLInfo (IVY-611) (thanks to
Jim Bonanno)
 - IMPROVEMENT: artifactproperty should not overwrite the existing properties (IVY-587)
 - IMPROVEMENT: Support *(private) and *(public) in the confs parameter of the resolve (IVY-588)
 - IMPROVEMENT: replace * by *(public) when resolving inline (IVY-589)

Modified: incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java?rev=580173&r1=580172&r2=580173&view=diff
==============================================================================
--- incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java (original)
+++ incubator/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Thu Sep
27 15:05:24 2007
@@ -60,6 +60,7 @@
         try {
             con = url.openConnection();
             if (con instanceof HttpURLConnection) {
+                ((HttpURLConnection) con).setRequestMethod("HEAD");
                 int status = ((HttpURLConnection) con).getResponseCode();
                 if (status == HttpStatus.SC_OK) {
                     return new URLInfo(true, ((HttpURLConnection) con).getContentLength(),
con



Mime
View raw message