From 39f3bf1f623b9ccf29ff10c9146aac56f6421349 Mon Sep 17 00:00:00 2001 From: freearhey Date: Mon, 19 Aug 2019 03:31:55 +0300 Subject: [PATCH] Changed default valid status config --- test/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 362f067e27..6ab893f4c2 100644 --- a/test/index.js +++ b/test/index.js @@ -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() {