We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9117be commit f8e0bceCopy full SHA for f8e0bce
start.js
@@ -1,9 +1,10 @@
1
'use strict';
2
const spawn = require('child_process').spawn;
3
const path = require("path");
4
+const http = require('http');
5
const https = require('https');
6
-const get = (url, options = {}) => new Promise((resolve, reject) => https
7
+const get = (url, options = {}) => new Promise((resolve, reject) => ((url.protocol == "https:") ? https : http)
8
.get(url, options, (res) => {
9
const chunks = [];
10
res.on('data', (chunk) => chunks.push(chunk));
0 commit comments