Fixup for 501fb5a46b
This commit is contained in:
parent
501fb5a46b
commit
e3d8ba2f37
|
@ -259,7 +259,7 @@ function Server(options) {
|
|||
if (options.certificate || options.key) {
|
||||
if (!(options.certificate && options.key) ||
|
||||
(typeof (options.certificate) !== 'string' &&
|
||||
!Buffer.isBuffer(options.key)) ||
|
||||
!Buffer.isBuffer(options.certificate)) ||
|
||||
(typeof (options.key) !== 'string' &&
|
||||
!Buffer.isBuffer(options.key))) {
|
||||
throw new TypeError('options.certificate and options.key ' +
|
||||
|
|
Loading…
Reference in New Issue