mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 12:28:53 -04:00
Changed default valid status config
This commit is contained in:
1 parent
004c799fc9
commit
9ecc52fd0b
1 file changed
+4
-1
+4
-1
@@ -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() {
|
||||||
|
|||||||
Reference in new issue
Block a user