fixed bug in proxy chain handling

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@555215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-07-11 08:54:20 +00:00
parent fc9772e6b1
commit 1c51824585
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public final class RouteTracker implements Cloneable {
HttpHost[] proxies = new HttpHost[this.proxyChain.length+1];
System.arraycopy(this.proxyChain, 0,
proxies, 0, this.proxyChain.length);
proxies[proxies.length+1] = proxy;
proxies[proxies.length-1] = proxy;
this.proxyChain = proxies;
this.secure = secure;