Enable HTTP/2 download again

This commit is contained in:
SukkaW 2025-01-24 15:30:05 +08:00
parent 601a8ed30a
commit fe7df4a457

View File

@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) {
fs.mkdirSync(CACHE_DIR, { recursive: true }); fs.mkdirSync(CACHE_DIR, { recursive: true });
} }
const agent = new Agent({ allowH2: false }); const agent = new Agent({ allowH2: true });
setGlobalDispatcher(agent.compose( setGlobalDispatcher(agent.compose(
interceptors.retry({ interceptors.retry({