Skip to content

Commit f8e0bce

Browse files
authored
Update start.js (#175)
Compatible with repository addresses using http protocol.
1 parent d9117be commit f8e0bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
22
const spawn = require('child_process').spawn;
33
const path = require("path");
4+
const http = require('http');
45
const https = require('https');
56

6-
const get = (url, options = {}) => new Promise((resolve, reject) => https
7+
const get = (url, options = {}) => new Promise((resolve, reject) => ((url.protocol == "https:") ? https : http)
78
.get(url, options, (res) => {
89
const chunks = [];
910
res.on('data', (chunk) => chunks.push(chunk));

0 commit comments

Comments
 (0)