mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Merge pull request #58 from victorusachev/hotfix--proxy-args
Fix for proxy in AiohttpConnector.request
This commit is contained in:
commit
e52ad822b9
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ class AiohttpConnector(AbstractConnector):
|
|||
:rtype :obj:`bool` or :obj:`dict`
|
||||
"""
|
||||
req = compose_data(data, files)
|
||||
kwargs.update(proxy=self.proxy, proxy_auth=self.proxy_auth)
|
||||
try:
|
||||
async with self.session.post(url, data=req, **kwargs) as response:
|
||||
return response.content_type, response.status, await response.text()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue