Disable HTTP/2 support

This commit is contained in:
SukkaW
2024-10-10 14:33:49 +08:00
parent 6e68498417
commit bb07225f6c
4 changed files with 9 additions and 30 deletions

View File

@@ -2,10 +2,6 @@ import retry from 'async-retry';
import picocolors from 'picocolors';
import { setTimeout } from 'node:timers/promises';
import { setGlobalDispatcher, EnvHttpProxyAgent } from 'undici';
setGlobalDispatcher(new EnvHttpProxyAgent({ allowH2: true }));
function isClientError(err: unknown): err is NodeJS.ErrnoException {
if (!err || typeof err !== 'object') return false;