From 70cdcce2a8640c4d5ef59513c7055dac1683961b Mon Sep 17 00:00:00 2001 From: liangwu Date: Mon, 28 Mar 2022 17:45:59 +0800 Subject: [PATCH] fix: chromium downloading hung at 99% set keep-alive header to fix downloading done without 'finish' event trigged on some devices. --- src/node/BrowserFetcher.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node/BrowserFetcher.ts b/src/node/BrowserFetcher.ts index 01140df4c487b..a3d18bebca5d5 100644 --- a/src/node/BrowserFetcher.ts +++ b/src/node/BrowserFetcher.ts @@ -576,6 +576,9 @@ function httpRequest( let options: Options = { ...urlParsed, method, + headers: { + 'Connection': 'keep-alive' + } }; const proxyURL = getProxyForUrl(url);