diff options
| author | WerWolv <werwolv98@gmail.com> | 2022-07-03 08:29:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-03 08:29:46 +0200 |
| commit | baa02c129fa5419405bcfd9b8740598be2d19f0f (patch) | |
| tree | e83a641c9ccb6ae49c77d6d3dcffd83461c57228 /backend/utilities.py | |
| parent | 1e6b3edbf2a6bab0305f5ee914e581716fddd0d5 (diff) | |
| download | decky-loader-baa02c129fa5419405bcfd9b8740598be2d19f0f.tar.gz decky-loader-baa02c129fa5419405bcfd9b8740598be2d19f0f.zip | |
Fixed plugin installation ssl verification issue (#101)
* Added cert location debugging
* Install certifi
* Try adding manual cacert in install request
* Properly use ssl
* More efficiently load ssl certificate
Diffstat (limited to 'backend/utilities.py')
| -rw-r--r-- | backend/utilities.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/utilities.py b/backend/utilities.py index 570ed568..834faeb2 100644 --- a/backend/utilities.py +++ b/backend/utilities.py @@ -4,7 +4,7 @@ from json.decoder import JSONDecodeError from aiohttp import ClientSession, web from injector import inject_to_tab - +import helpers class Utilities: def __init__(self, context) -> None: @@ -48,7 +48,7 @@ class Utilities: async def http_request(self, method="", url="", **kwargs): async with ClientSession() as web: - async with web.request(method, url, **kwargs) as res: + async with web.request(method, url, ssl=helpers.get_ssl_context(), **kwargs) as res: return { "status": res.status, "headers": dict(res.headers), |
