Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixes #9995, use proxy correctly
  • Loading branch information
ntextreme3 committed Feb 18, 2020
commit 78a76d079bb0dd59c1b75c3f397f5b6173488b3d
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,10 @@ class RESTClientObject(object):
)

# https pool manager
if configuration.proxy:
self.pool_manager = aiohttp.ClientSession(
connector=connector,
proxy=configuration.proxy
)
else:
self.pool_manager = aiohttp.ClientSession(
connector=connector
)
self.proxy = configuration.proxy
self.pool_manager = aiohttp.ClientSession(
connector=connector
)

async def request(self, method, url, query_params=None, headers=None,
body=None, post_params=None, _preload_content=True,
Expand Down Expand Up @@ -110,7 +105,8 @@ class RESTClientObject(object):
"method": method,
"url": url,
"timeout": timeout,
"headers": headers
"headers": headers,
"proxy": self.proxy,
}

if query_params:
Expand Down