whistle.script 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/util.js +1 -1
- package/package.json +1 -1
package/lib/util.js
CHANGED
|
@@ -143,7 +143,7 @@ const request = (url, headers, data) => {
|
|
|
143
143
|
}
|
|
144
144
|
return new Promise((resolve, reject) => {
|
|
145
145
|
const httpModule = options.protocol === 'https:' ? https : http;
|
|
146
|
-
options.rejectUnauthorized =
|
|
146
|
+
options.rejectUnauthorized = false;
|
|
147
147
|
const client = httpModule.request(options, (res) => {
|
|
148
148
|
res.on('error', handleError); // eslint-disable-line
|
|
149
149
|
let body;
|