From 8395766dcda9eca166da5e8b9e600d432d8f5607 Mon Sep 17 00:00:00 2001 From: Yao Chung Hu <30311066+FlashyReese@users.noreply.github.com> Date: Mon, 26 Oct 2026 14:51:06 -0600 Subject: allow larger response headers when downloading Decky updates (#1000) --- backend/decky_loader/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/decky_loader') diff --git a/backend/decky_loader/updater.py b/backend/decky_loader/updater.py index 99389208..d018b4fe 100644 --- a/backend/decky_loader/updater.py +++ b/backend/decky_loader/updater.py @@ -186,7 +186,8 @@ class Updater: if size_in_bytes == None: size_in_bytes = 35000000 # 35MiB, a reasonable overestimate (30.00 MiB as of 2026/10/05) - async with ClientSession() as web: + # GitHub release redirects can carry CSP headers larger than 8 KiB. + async with ClientSession(max_field_size=32 * 1024) as web: logger.debug("Downloading binary") async with web.request("GET", download_url, ssl=helpers.get_ssl_context(), allow_redirects=True) as res: total = int(res.headers.get('content-length', size_in_bytes)) -- cgit v1.2.3