Skip to content

Commit 5def9c0

Browse files
committed
1 parent 1af6b54 commit 5def9c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const http = require('http');
2-
const http2 = require('http2');
2+
const https = require('https');
3+
// const http2 = require('http2');
34
const util = require('util');
45

56
const Cabin = require('cabin');
@@ -163,7 +164,8 @@ class API {
163164

164165
// start server on either http or https
165166
if (this.config.protocol === 'https')
166-
server = http2.createSecureServer(this.config.ssl, app.callback());
167+
server = https.createServer(this.config.ssl, app.callback());
168+
// server = http2.createSecureServer(this.config.ssl, app.callback());
167169
else server = http.createServer(app.callback());
168170

169171
// expose app, server, client

0 commit comments

Comments
 (0)