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 1af6b54 commit 5def9c0Copy full SHA for 5def9c0
index.js
@@ -1,5 +1,6 @@
1
const http = require('http');
2
-const http2 = require('http2');
+const https = require('https');
3
+// const http2 = require('http2');
4
const util = require('util');
5
6
const Cabin = require('cabin');
@@ -163,7 +164,8 @@ class API {
163
164
165
// start server on either http or https
166
if (this.config.protocol === 'https')
- 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());
169
else server = http.createServer(app.callback());
170
171
// expose app, server, client
0 commit comments