fix http requests

This commit is contained in:
AAGaming
2022-11-19 22:33:51 -05:00
parent c210523a22
commit 16681fabb5
+2 -1
View File
@@ -81,10 +81,11 @@ class Utilities:
async def http_request(self, method="", url="", **kwargs):
async with ClientSession() as web:
res = await web.request(method, url, ssl=helpers.get_ssl_context(), **kwargs)
text = await res.text()
return {
"status": res.status,
"headers": dict(res.headers),
"body": await res.text()
"body": text
}
async def ping(self, **kwargs):