diff --git a/CHANGELOG.md b/CHANGELOG.md index 961423ad..8be708c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Add support for Cloud Fetch - Fix: Revised SQLAlchemy dialect and examples for compatibility with SQLAlchemy==1.3.x - Fix: oauth would fail if expired credentials appeared in ~/.netrc +- Fix: Python HTTP proxies were broken after switch to urllib3 ## 2.7.0 (2023-06-26) diff --git a/src/databricks/sql/auth/thrift_http_client.py b/src/databricks/sql/auth/thrift_http_client.py index 89ad66a0..fbae1cc2 100644 --- a/src/databricks/sql/auth/thrift_http_client.py +++ b/src/databricks/sql/auth/thrift_http_client.py @@ -109,7 +109,10 @@ def open(self): headers={"Proxy-Authorization": self.proxy_auth}, ) self.__pool = proxy_manager.connection_from_host( - self.host, self.port, pool_kwargs=_pool_kwargs + host=self.realhost, + port=self.realport, + scheme=self.scheme, + pool_kwargs=_pool_kwargs, ) else: self.__pool = pool_class(self.host, self.port, **_pool_kwargs)