Disable HTTP/2

This commit is contained in:
SukkaW 2025-05-20 23:26:13 +08:00
parent c135291212
commit 6be59140bd

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: true }); const agent = new Agent({ allowH2: false });
setGlobalDispatcher(agent.compose( setGlobalDispatcher(agent.compose(
interceptors.dns({ interceptors.dns({