Changed default valid status config

This commit is contained in:
freearhey committed 2019-08-19 03:31:55 +03:00
1 parent 004c799fc9
commit 9ecc52fd0b
1 file changed
+4 -1
+4 -1
View File
@@ -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() {