Skip to content

Commit

Permalink
Update download.js to hse https instead of http
Browse files Browse the repository at this point in the history
Addresses the following issue:
tjanczuk#713
  • Loading branch information
alan-copeland-keysight authored Dec 8, 2020
1 parent 2d6b045 commit 601d03d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/download.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
var http = require('http');
var http = require('https');

var urls;
if (process.argv[2] === 'x86') {
urls = [
'http://nodejs.org/dist/v' + process.argv[3] + '/node.exe',
'http://nodejs.org/dist/v' + process.argv[3] + '/win-x86/node.exe'
'https://nodejs.org/dist/v' + process.argv[3] + '/node.exe',
'https://nodejs.org/dist/v' + process.argv[3] + '/win-x86/node.exe'
];
}
else {
urls = [
'http://nodejs.org/dist/v' + process.argv[3] + '/x64/node.exe',
'http://nodejs.org/dist/v' + process.argv[3] + '/win-x64/node.exe'
'https://nodejs.org/dist/v' + process.argv[3] + '/x64/node.exe',
'https://nodejs.org/dist/v' + process.argv[3] + '/win-x64/node.exe'
];
}

Expand Down

0 comments on commit 601d03d

Please sign in to comment.