From 8b4430bede2af2aa62dbaee8fb9d7748e547ffe6 Mon Sep 17 00:00:00 2001 From: atsu1125 Date: Sun, 28 Jul 2024 16:54:10 +0900 Subject: [PATCH] fix: turn http2 OFF forward proxy is not available if http2 is ON --- built/download.js | 2 +- src/download.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, },