Revert "Update start.js (#175)" (#176)

This reverts commit f8e0bce133.
This commit is contained in:
Pascal Zimmermann
2023-07-27 22:03:00 +02:00
committed by GitHub
parent f8e0bce133
commit 4150bf040c

View File

@ -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));