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 12173ab commit 9a11b0dCopy full SHA for 9a11b0d
lib/Server.js
@@ -549,6 +549,9 @@ class Server {
549
}
550
551
createServer() {
552
+ const https = require('https');
553
+ const http = require('http');
554
+
555
if (this.options.https) {
556
if (this.options.http2) {
557
// TODO: we need to replace spdy with http2 which is an internal module
@@ -562,13 +565,9 @@ class Server {
562
565
this.app
563
566
);
564
567
} else {
- const https = require('https');
-
568
this.server = https.createServer(this.options.https, this.app);
569
570
- const http = require('http');
571
572
this.server = http.createServer(this.app);
573
574
0 commit comments