From 01bf4cdbb9bd9e67cad76535cdc3470fa46cd8c3 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Wed, 2 Oct 2013 07:42:42 +0000 Subject: [PATCH] Removed unnecessary protocol interceptor from the proxy protocol processor git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1528327 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/impl/execchain/MainClientExec.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java index 7b19c3eaf..be8a2e0c5 100644 --- a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java +++ b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java @@ -70,7 +70,6 @@ import org.apache.http.protocol.HttpProcessor; import org.apache.http.protocol.HttpRequestExecutor; import org.apache.http.protocol.ImmutableHttpProcessor; import org.apache.http.protocol.RequestTargetHost; -import org.apache.http.protocol.RequestUserAgent; import org.apache.http.util.Args; import org.apache.http.util.EntityUtils; @@ -118,7 +117,7 @@ public class MainClientExec implements ClientExecChain { Args.notNull(userTokenHandler, "User token handler"); this.authenticator = new HttpAuthenticator(); this.proxyHttpProcessor = new ImmutableHttpProcessor( - new RequestTargetHost(), new RequestClientConnControl(), new RequestUserAgent()); + new RequestTargetHost(), new RequestClientConnControl()); this.routeDirector = new BasicRouteDirector(); this.requestExecutor = requestExecutor; this.connManager = connManager;