diff --git a/built/download.js b/built/download.js index 723be20..c91006b 100644 --- a/built/download.js +++ b/built/download.js @@ -38,7 +38,7 @@ export async function downloadUrl(url, path, settings = defaultDownloadConfig) { http: settings.httpAgent, https: settings.httpsAgent, }, - http2: true, + http2: false, // default retry: { limit: 0, }, diff --git a/src/download.ts b/src/download.ts index 9889bfb..a484c85 100644 --- a/src/download.ts +++ b/src/download.ts @@ -57,7 +57,7 @@ export async function downloadUrl(url: string, path: string, settings:DownloadCo http: settings.httpAgent, https: settings.httpsAgent, }, - http2: true, + http2: false, // default retry: { limit: 0, },