[Sync] request post updated
This commit is contained in:
1 parent
c3514ae818
commit
b4337eec52
1 file changed
+2
-2
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user