We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5137fea commit 14b2f74Copy full SHA for 14b2f74
lib/main.js
@@ -60,17 +60,13 @@ function setupStartOptions(options, callback) {
60
}
61
62
function createHttpsOptions(options) {
63
- var httpsOptions = {};
+ var httpsOptions = options._httpsOptions || {};
64
65
if (options.key && options.cert) {
66
- httpsOptions = {
67
- key: options.key,
68
- cert: options.cert
69
- };
+ httpsOptions.key = options.key;
+ httpsOptions.cert = options.cert;
70
} else if (options.pfx) {
71
72
- pfx: options.pfx
73
+ httpsOptions.pfx = options.pfx;
74
75
76
return httpsOptions;
0 commit comments