From 9f1f972d0eae1237122335659ae59a90d5d3e4fe Mon Sep 17 00:00:00 2001 From: Pierce Date: Mon, 29 Oct 2018 20:55:03 -0400 Subject: [PATCH] change asset url to https --- components/handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/handler.js b/components/handler.js index 3ea556e..4fe8290 100644 --- a/components/handler.js +++ b/components/handler.js @@ -41,7 +41,7 @@ module.exports.getVersion = function (version) { const parsed = JSON.parse(body); - for (let desiredVersion in parsed.versions) { + for (const desiredVersion in parsed.versions) { if(parsed.versions[desiredVersion].id === version) { request.get(parsed.versions[desiredVersion].url, function(error, response, body) { if (error) resolve(error); @@ -66,7 +66,7 @@ module.exports.getJar = function (version, number, directory) { module.exports.getAssets = function (directory, version) { return new Promise(async(resolve) => { - const assetsUrl = 'http://resources.download.minecraft.net'; + const assetsUrl = 'https://resources.download.minecraft.net'; const failed = []; if(!fs.existsSync(path.join(directory, 'assets', 'indexes', `${version.assetIndex.id}.json`))) {