[Sync] request post updated

This commit is contained in:
Roman Timashev committed 2017-10-28 15:49:47 +03:00
1 parent c3514ae818
commit b4337eec52
1 file changed
+2 -2
+2 -2
View File
@@ -32,9 +32,9 @@ async def get(url):
return await res.text()
async def post(url, data, params={}):
async def post(url, data, params={}, headers={}):
async with aiohttp.ClientSession() as session:
async with session.post(url, data=data, params=params) as resp:
async with session.post(url, data=data, params=params, headers=headers) as resp:
return await resp.text()