youzanyun-open-sdk
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -26,2 +26,7 @@ const https = require('https'); | ||
this.rejectUnauthorized = rejectUnauthorized; | ||
if (!rejectUnauthorized) { | ||
this.httpsAgent = new https.Agent({ | ||
rejectUnauthorized: false | ||
}); | ||
} | ||
} | ||
@@ -65,6 +70,4 @@ | ||
_doRequest(config) { | ||
if (!this.rejectUnauthorized) { | ||
config.httpsAgent = new https.Agent({ | ||
rejectUnauthorized: false | ||
}); | ||
if (this.httpsAgent) { | ||
config.httpsAgent = this.httpsAgent; | ||
} | ||
@@ -71,0 +74,0 @@ let res = axios.request(config); |
{ | ||
"name": "youzanyun-open-sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
25149
834