Changed default valid status config

pull/228/head
freearhey 6 years ago
parent 2a2f73e2d0
commit 39f3bf1f62

@ -19,7 +19,10 @@ const instance = axios.create({
timeout: config.timeout, timeout: config.timeout,
httpsAgent: new https.Agent({ httpsAgent: new https.Agent({
rejectUnauthorized: false rejectUnauthorized: false
}) }),
validateStatus: function (status) {
return status >= 200 && status < 404
}
}) })
async function test() { async function test() {

Loading…
Cancel
Save