From d9858958c9b54c83ba8c29b10c01213f6d68301c Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sun, 25 Nov 2018 22:18:59 -0500 Subject: [PATCH] Oracle now uses https, update body parser accordingly. --- app/assets/js/assetguard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js index 7806811d..85f23e3d 100644 --- a/app/assets/js/assetguard.js +++ b/app/assets/js/assetguard.js @@ -394,8 +394,8 @@ class AssetGuard extends EventEmitter { */ static _latestJREOracle(){ - const url = 'http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html' - const regex = /http:\/\/.+?(?=\/java)\/java\/jdk\/([0-9]+u[0-9]+)-(b[0-9]+)\/([a-f0-9]{32})?\/jre-\1/ + const url = 'https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html' + const regex = /https:\/\/.+?(?=\/java)\/java\/jdk\/([0-9]+u[0-9]+)-(b[0-9]+)\/([a-f0-9]{32})?\/jre-\1/ return new Promise((resolve, reject) => { request(url, (err, resp, body) => {