Unverified Commit 5ecf3e0a authored by Yuan's avatar Yuan Committed by GitHub
Browse files

Misc: allow to use proxy in `HTTPConnection` (#12042)


Signed-off-by: default avatarYuan Zhou <yuan.zhou@intel.com>
parent 97eb97b5
......@@ -29,7 +29,7 @@ class HTTPConnection:
# required, so that the client is only accessible inside async event loop
async def get_async_client(self) -> aiohttp.ClientSession:
if self._async_client is None or not self.reuse_client:
self._async_client = aiohttp.ClientSession()
self._async_client = aiohttp.ClientSession(trust_env=True)
return self._async_client
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment