From b28adbb438298991e5b36ae4592698c3cd68b13e Mon Sep 17 00:00:00 2001 From: Thomas Reggi Date: Mon, 4 Dec 2017 04:13:53 -0500 Subject: [PATCH] fix(Downloader): better handling for HTTPS proxy (#1508) This patch starts using `rejectUnauthorized` option set to false to improve chances of downloading chromium behind proxy. --- utils/ChromiumDownloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ChromiumDownloader.js b/utils/ChromiumDownloader.js index 38022b4c2e4..97d4a5773f2 100644 --- a/utils/ChromiumDownloader.js +++ b/utils/ChromiumDownloader.js @@ -236,8 +236,8 @@ function requestOptions(url, method = 'GET') { /** @type {Object} */ const parsedProxyURL = URL.parse(proxyURL); parsedProxyURL.secureProxy = parsedProxyURL.protocol === 'https:'; - result.agent = new ProxyAgent(parsedProxyURL); + result.rejectUnauthorized = false; } return result;