fix(server): treat https: null as https: undefined (#6265)

This commit is contained in:
Dmitry Molotkov 2019-08-21 19:23:53 +03:00 committed by Pooya Parsa
parent 19f7fb1a69
commit 1fda184990

View File

@ -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