mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(server): treat https: null
as https: undefined
(#6265)
This commit is contained in:
parent
19f7fb1a69
commit
1fda184990
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user