Changed route tracking of proxy to not default to false and instead to

use the routes secure value and not Tunneling. This allow secure routes
to proxies and not tunnel/CONNECT.
This commit is contained in:
Greg Knapowski 2019-03-12 21:42:28 -05:00
parent ba1f444484
commit c8a224184e
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ public class MainClientExec implements ClientExecChain {
timeout > 0 ? timeout : 0, timeout > 0 ? timeout : 0,
context); context);
final HttpHost proxy = route.getProxyHost(); final HttpHost proxy = route.getProxyHost();
tracker.connectProxy(proxy, false); tracker.connectProxy(proxy, route.isSecure() && !route.isTunnelled());
break; break;
case HttpRouteDirector.TUNNEL_TARGET: { case HttpRouteDirector.TUNNEL_TARGET: {
final boolean secure = createTunnelToTarget( final boolean secure = createTunnelToTarget(