Skip to content

Commit

Permalink
fix: chromium downloading hung at 99%
Browse files Browse the repository at this point in the history
set keep-alive header to fix downloading done without 'finish' event trigged on some devices.
  • Loading branch information
0xGaryWu authored and leon committed Mar 28, 2022
1 parent 37ede68 commit 70cdcce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node/BrowserFetcher.ts
Expand Up @@ -576,6 +576,9 @@ function httpRequest(
let options: Options = {
...urlParsed,
method,
headers: {
'Connection': 'keep-alive'
}
};

const proxyURL = getProxyForUrl(url);
Expand Down

0 comments on commit 70cdcce

Please sign in to comment.