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:
parent
90f799cc95
commit
b28adbb438
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user