diff --git a/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js b/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js index bb52ccea..044e9acd 100644 --- a/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +++ b/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js @@ -396,7 +396,7 @@ function XMLHttpRequest(opts) { options.cert = opts.cert; options.ca = opts.ca; options.ciphers = opts.ciphers; - options.rejectUnauthorized = opts.rejectUnauthorized; + options.rejectUnauthorized = opts.rejectUnauthorized === false ? false : true; } // Reset error flag @@ -442,7 +442,7 @@ function XMLHttpRequest(opts) { options.cert = opts.cert; options.ca = opts.ca; options.ciphers = opts.ciphers; - options.rejectUnauthorized = opts.rejectUnauthorized; + options.rejectUnauthorized = opts.rejectUnauthorized === false ? false : true; } // Issue the new request