Chore: enable HTTP/2 again

This commit is contained in:
SukkaW 2025-07-31 22:25:19 +08:00
parent 83e94403e8
commit 0a2548d6e5
2 changed files with 2 additions and 1 deletions

View File

@ -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.dns({

View File

@ -122,6 +122,7 @@ export function task(importMetaMain: boolean, importMetaPath: string) {
dummySpan.stop();
printTraceResult(dummySpan.traceResult);
process.nextTick(whyIsNodeRunning);
process.nextTick(() => process.exit(0));
});
}