mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Oracle now uses https, update body parser accordingly.
This commit is contained in:
parent
9d5f708dfc
commit
d9858958c9
@ -394,8 +394,8 @@ class AssetGuard extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
static _latestJREOracle(){
|
static _latestJREOracle(){
|
||||||
|
|
||||||
const url = 'http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html'
|
const url = 'https://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 regex = /https:\/\/.+?(?=\/java)\/java\/jdk\/([0-9]+u[0-9]+)-(b[0-9]+)\/([a-f0-9]{32})?\/jre-\1/
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
request(url, (err, resp, body) => {
|
request(url, (err, resp, body) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user