This commit is contained in:
Oleg Kalnichevski 2019-03-18 09:43:11 +01:00
commit 35a2ff2671
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);