actually implement timeout in the http_request_legacy handler

This commit is contained in:
AAGaming
2024-08-03 13:39:14 -04:00
parent 9d0dbbb790
commit 8a90605a64
+1 -1
View File
@@ -199,7 +199,7 @@ class Utilities:
async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None):
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()
return {
"status": res.status,