Skip to content

Commit df39f60

Browse files
committed
fix broken unit test
1 parent 32f43c9 commit df39f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/http-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function HttpServer(options) {
173173
serverOptions.https = options.https;
174174
}
175175

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

0 commit comments

Comments
 (0)