From 5b42ae8fd0f2b9936fd255a1ab8ebf69770cece0 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 30 Apr 2008 00:15:16 +0000 Subject: [PATCH] Remove redundant assignment git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652195 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/http/impl/client/DefaultClientRequestDirector.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module-client/src/main/java/org/apache/http/impl/client/DefaultClientRequestDirector.java b/module-client/src/main/java/org/apache/http/impl/client/DefaultClientRequestDirector.java index 86903cafc..7e731307c 100644 --- a/module-client/src/main/java/org/apache/http/impl/client/DefaultClientRequestDirector.java +++ b/module-client/src/main/java/org/apache/http/impl/client/DefaultClientRequestDirector.java @@ -791,7 +791,6 @@ public class DefaultClientRequestDirector throws HttpException, IOException { HttpRoute route = roureq.getRoute(); - HttpHost target = route.getTargetHost(); HttpHost proxy = route.getProxyHost(); RequestWrapper request = roureq.getRequest(); @@ -837,7 +836,7 @@ public class DefaultClientRequestDirector if (this.targetAuthHandler.isAuthenticationRequested(response, context)) { - target = (HttpHost) + HttpHost target = (HttpHost) context.getAttribute(ExecutionContext.HTTP_TARGET_HOST); if (target == null) { target = route.getTargetHost();