We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995ffeb commit 30e2241Copy full SHA for 30e2241
index.js
@@ -1,5 +1,5 @@
1
const http = require('http');
2
-const http2 = require('http2');
+const https = require('https');
3
const util = require('util');
4
5
const Cabin = require('cabin');
@@ -175,10 +175,10 @@ class API {
175
else app.use(this.config.routes);
176
}
177
178
- // start server on either http or http2
+ // start server on either http or https
179
const server =
180
this.config.protocol === 'https'
181
- ? http2.createSecureServer(this.config.ssl, app.callback())
+ ? https.createServer(this.config.ssl, app.callback())
182
: http.createServer(app.callback());
183
184
// expose app, server, client
0 commit comments