From 453ed8f639a618b18fd08fa665bd96260d37ed22 Mon Sep 17 00:00:00 2001 From: liangwu Date: Mon, 28 Mar 2022 17:45:59 +0800 Subject: [PATCH] fix issues: 5048, chromium downloading hung 99% https://github.com/puppeteer/puppeteer/issues/5048 --- 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);