requests http:// to https://
This commit is contained in:
parent
456c85c805
commit
04ccf3d762
@ -7,7 +7,7 @@ function exchangeAPI(api, options) {
|
|||||||
let curPos = exchangeAPI.curPos || 0;
|
let curPos = exchangeAPI.curPos || 0;
|
||||||
if (curPos >= nodeList.length)
|
if (curPos >= nodeList.length)
|
||||||
return resolve('No Nodes online');
|
return resolve('No Nodes online');
|
||||||
let url = "http://" + nodeURL[nodeList[curPos]];
|
let url = "https://" + nodeURL[nodeList[curPos]];
|
||||||
(options ? fetch(url + api, options) : fetch(url + api))
|
(options ? fetch(url + api, options) : fetch(url + api))
|
||||||
.then(result => resolve(result)).catch(error => {
|
.then(result => resolve(result)).catch(error => {
|
||||||
console.warn(nodeList[curPos], 'is offline');
|
console.warn(nodeList[curPos], 'is offline');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user