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.
This commit is contained in:
Thomas Reggi 2017-12-04 04:13:53 -05:00 committed by Andrey Lushnikov
parent 90f799cc95
commit b28adbb438

View File

@ -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;