incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Bonanno (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-611) BasicURLHandler should use method=head for getURLInfo
Date Wed, 26 Sep 2007 19:23:51 GMT
BasicURLHandler should use method=head for getURLInfo
-----------------------------------------------------

                 Key: IVY-611
                 URL: https://issues.apache.org/jira/browse/IVY-611
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-alpha-2
            Reporter: Jim Bonanno


We encountered a problem where ivys and artifacts are downloaded twice from the server. The
problem only occurs with the BasicURLHandler, the HttpClientHandler correctly set the request
method to HEAD is getURLInfo.

The fix to BasicURLHandler is set the request method to head. The info does not need the response
body.


            if (con instanceof HttpURLConnection) {
                ((HttpURLConnection) con).setRequestMethod("HEAD");
                int status = ((HttpURLConnection) con).getResponseCode();


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message