From 1fda184990430d81dc8dfc11fca35236e39d449e Mon Sep 17 00:00:00 2001 From: Dmitry Molotkov Date: Wed, 21 Aug 2019 19:23:53 +0300 Subject: [PATCH] fix(server): treat `https: null` as `https: undefined` (#6265) --- packages/server/src/listener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/listener.js b/packages/server/src/listener.js index 952fa8053b..125a566f6c 100644 --- a/packages/server/src/listener.js +++ b/packages/server/src/listener.js @@ -63,7 +63,7 @@ export default class Listener { // Initialize underlying http(s) server const protocol = this.https ? https : http - const protocolOpts = typeof this.https === 'object' ? [this.https] : [] + const protocolOpts = this.https ? [this.https] : [] this._server = protocol.createServer.apply(protocol, protocolOpts.concat(this.app)) // Call server.listen