mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
parent
33ce0ef02c
commit
bf58838b89
2 changed files with 1 additions and 2 deletions
|
@ -483,7 +483,7 @@ class Monitor extends BeanModel {
|
||||||
validateStatus: (status) => {
|
validateStatus: (status) => {
|
||||||
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
||||||
},
|
},
|
||||||
signal: axiosAbortSignal(this.timeout * 1000),
|
signal: axiosAbortSignal((this.timeout + 10) * 1000),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (bodyValue) {
|
if (bodyValue) {
|
||||||
|
|
|
@ -1141,7 +1141,6 @@ module.exports.axiosAbortSignal = (timeoutMs) => {
|
||||||
// v16-: AbortSignal.timeout is not supported
|
// v16-: AbortSignal.timeout is not supported
|
||||||
try {
|
try {
|
||||||
const abortController = new AbortController();
|
const abortController = new AbortController();
|
||||||
|
|
||||||
setTimeout(() => abortController.abort(), timeoutMs);
|
setTimeout(() => abortController.abort(), timeoutMs);
|
||||||
|
|
||||||
return abortController.signal;
|
return abortController.signal;
|
||||||
|
|
Loading…
Reference in a new issue