summaryrefslogtreecommitdiff
path: root/backend/utilities.py
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-11-19 22:33:51 -0500
committerAAGaming <aa@mail.catvibers.me>2022-11-19 22:33:51 -0500
commit16681fabb530b65ebb6590757677d1ec92e8cfac (patch)
treed1ea04a3085952b451a6ab80905e456cbf73101b /backend/utilities.py
parentc210523a2208f61b826d3d164a98a01d15eda0ff (diff)
downloaddecky-loader-16681fabb530b65ebb6590757677d1ec92e8cfac.tar.gz
decky-loader-16681fabb530b65ebb6590757677d1ec92e8cfac.zip
fix http requestsv2.4.5v2.4.4-pre1
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):