Changed route tracking of proxy to not default to false

This commit is contained in:
Oleg Kalnichevski 2019-03-18 09:28:31 +01:00
parent 7f5668797a
commit 07bd2e26fc
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);