summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorYao Chung Hu <30311066+FlashyReese@users.noreply.github.com>2026-10-26 14:51:06 -0600
committerGitHub <noreply@github.com>2026-10-26 16:51:06 -0400
commit8395766dcda9eca166da5e8b9e600d432d8f5607 (patch)
tree037d75360ed83627375c203cd9bebbc63a0f3e00 /backend
parent00cd202872b85868071b041c8f1b34e734147195 (diff)
downloaddecky-loader-8395766dcda9eca166da5e8b9e600d432d8f5607.tar.gz
decky-loader-8395766dcda9eca166da5e8b9e600d432d8f5607.zip
allow larger response headers when downloading Decky updates (#1000)
Diffstat (limited to 'backend')
-rw-r--r--backend/decky_loader/updater.py3
1 files changed, 2 insertions, 1 deletions
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))