From 16681fabb530b65ebb6590757677d1ec92e8cfac Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 19 Nov 2022 22:33:51 -0500 Subject: fix http requests --- backend/utilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend') 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): -- cgit v1.2.3