mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:22:00 +00:00
actually implement timeout in the http_request_legacy handler
This commit is contained in:
@@ -199,7 +199,7 @@ class Utilities:
|
|||||||
|
|
||||||
async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None):
|
async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None):
|
||||||
async with ClientSession() as web:
|
async with ClientSession() as web:
|
||||||
res = await web.request(method, url, ssl=helpers.get_ssl_context(), **extra_opts)
|
res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout **extra_opts)
|
||||||
text = await res.text()
|
text = await res.text()
|
||||||
return {
|
return {
|
||||||
"status": res.status,
|
"status": res.status,
|
||||||
|
|||||||
Reference in New Issue
Block a user