From fe7df4a45771ba352e71a7cdaf96fc8ff4d8d370 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 24 Jan 2025 15:30:05 +0800 Subject: [PATCH] Enable HTTP/2 download again --- Build/lib/fetch-retry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/lib/fetch-retry.ts b/Build/lib/fetch-retry.ts index 3def686d..c70ea10e 100644 --- a/Build/lib/fetch-retry.ts +++ b/Build/lib/fetch-retry.ts @@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) { fs.mkdirSync(CACHE_DIR, { recursive: true }); } -const agent = new Agent({ allowH2: false }); +const agent = new Agent({ allowH2: true }); setGlobalDispatcher(agent.compose( interceptors.retry({