Port of PR #143
This commit is contained in:
commit
35a2ff2671
|
@ -223,7 +223,7 @@ public final class AsyncConnectExec implements AsyncExecChainHandler {
|
|||
@Override
|
||||
public void completed(final AsyncExecRuntime execRuntime) {
|
||||
final HttpHost proxy = route.getProxyHost();
|
||||
tracker.connectProxy(proxy, false);
|
||||
tracker.connectProxy(proxy, route.isSecure() && !route.isTunnelled());
|
||||
log.debug("Connected to proxy");
|
||||
proceedToNextHop(state, request, entityProducer, scope, chain, asyncExecCallback);
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ public final class ConnectExec implements ExecChainHandler {
|
|||
case HttpRouteDirector.CONNECT_PROXY:
|
||||
execRuntime.connectEndpoint(context);
|
||||
final HttpHost proxy = route.getProxyHost();
|
||||
tracker.connectProxy(proxy, false);
|
||||
tracker.connectProxy(proxy, route.isSecure() && !route.isTunnelled());
|
||||
break;
|
||||
case HttpRouteDirector.TUNNEL_TARGET: {
|
||||
final boolean secure = createTunnelToTarget(route, request, execRuntime, context);
|
||||
|
|
Loading…
Reference in New Issue