From 4150bf040c4cf8ef40292dce398440df70fd3a4a Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Thu, 27 Jul 2023 22:03:00 +0200 Subject: [PATCH] Revert "Update start.js (#175)" (#176) This reverts commit f8e0bce1336275c599afd7c2ee08df11d28fd317. --- start.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start.js b/start.js index de759d7..dc54931 100644 --- a/start.js +++ b/start.js @@ -1,10 +1,9 @@ 'use strict'; const spawn = require('child_process').spawn; const path = require("path"); -const http = require('http'); const https = require('https'); -const get = (url, options = {}) => new Promise((resolve, reject) => ((url.protocol == "https:") ? https : http) +const get = (url, options = {}) => new Promise((resolve, reject) => https .get(url, options, (res) => { const chunks = []; res.on('data', (chunk) => chunks.push(chunk));