mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
не у того обьекта прописывалось rejectUnauthorized
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/nodeJSProjects@64644 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
399531deac
commit
d1bb44538c
@ -157,11 +157,12 @@ function downloadUrlPromise(uri, optTimeout, optLimit) {
|
||||
uri = encodeURI(uri);
|
||||
}
|
||||
var urlParsed = url.parse(uri);
|
||||
var options = {uri: urlParsed, encoding: null, timeout: optTimeout};
|
||||
if (urlParsed.protocol === 'https:') {
|
||||
//TODO: Check how to correct handle a ssl link
|
||||
urlParsed.rejectUnauthorized = false;
|
||||
options.rejectUnauthorized = false;
|
||||
}
|
||||
var options = {uri: urlParsed, encoding: null, timeout: optTimeout};
|
||||
request.get(options, function (err, response, body) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
|
||||
Reference in New Issue
Block a user