Skip to content

Commit 7eebef6

Browse files
committed
fix an error that choose a wrong protocol
Should use http when there ware no -S option.
1 parent 97a93dc commit 7eebef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/http-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function listen(port) {
8181

8282
var server = httpServer.createServer(options);
8383
server.listen(port, host, function() {
84-
var uri = [ssl ? 'http' : 'https', '://', host, ':', port].join('');
84+
var uri = [ssl ? 'https' : 'http', '://', host, ':', port].join('');
8585
log('Starting up http-server, serving '.yellow
8686
+ server.root.cyan
8787
+ ((ssl) ? ' through'.yellow + ' https'.cyan : '')

0 commit comments

Comments
 (0)