ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r801820 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java
Date Thu, 06 Aug 2009 21:29:55 GMT
Author: maartenc
Date: Thu Aug  6 21:29:53 2009
New Revision: 801820

URL: http://svn.apache.org/viewvc?rev=801820&view=rev
Log:
FIX: Credentials were not set properly for URLs that require authentication when using HttpClient.

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

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java?rev=801820&r1=801819&r2=801820&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java Thu Aug  6
21:29:53 2009
@@ -295,7 +295,7 @@
         Credentials c = getCredentials(url);
         if (c != null) {
             Message.debug("found credentials for " + url + ": " + c);
-            httpClient.getState().setProxyCredentials(
+            httpClient.getState().setCredentials(
                 new AuthScope(c.getHost(), AuthScope.ANY_PORT, c.getRealm()),
                 new NTCredentials(c.getUserName(), c.getPasswd(), 
                     HostUtil.getLocalHostName(), c.getRealm()));



Mime
View raw message