summaryrefslogtreecommitdiff
path: root/backend/utilities.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/utilities.py')
-rw-r--r--backend/utilities.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/utilities.py b/backend/utilities.py
index 10651d2f..0723402f 100644
--- a/backend/utilities.py
+++ b/backend/utilities.py
@@ -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):