Changed default valid status config

This commit is contained in:
freearhey 2019-08-19 03:31:55 +03:00
parent 2a2f73e2d0
commit 39f3bf1f62

View File

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