Skip to content

Commit

Permalink
fix broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chris--jones committed Oct 15, 2021
1 parent 32f43c9 commit df39f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-server.js
Expand Up @@ -173,7 +173,7 @@ function HttpServer(options) {
serverOptions.https = options.https;
}

this.server = options.https.passphrase
this.server = serverOptions.https && serverOptions.https.passphrase
// if passphrase is set, shim must be used as union does not support
? require('./shims/https-server-shim')(serverOptions)
: union.createServer(serverOptions);
Expand Down

0 comments on commit df39f60

Please sign in to comment.