mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-24 17:45:59 +00:00
turn do not redirect to false
This commit is contained in:
parent
a39db4ffc9
commit
d89ee302fd
@ -66,7 +66,7 @@ export default class ApiMonitor {
|
|||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
timeout: options.timeout?.toNumber() || 5000,
|
timeout: options.timeout?.toNumber() || 5000,
|
||||||
doNotFollowRedirects: true,
|
doNotFollowRedirects: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ export default class ApiMonitor {
|
|||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
timeout: options.timeout?.toNumber() || 5000,
|
timeout: options.timeout?.toNumber() || 5000,
|
||||||
doNotFollowRedirects: true,
|
doNotFollowRedirects: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ export default class WebsiteMonitor {
|
|||||||
let result: WebsiteResponse = await WebsiteRequest.fetch(url, {
|
let result: WebsiteResponse = await WebsiteRequest.fetch(url, {
|
||||||
isHeadRequest: options.isHeadRequest,
|
isHeadRequest: options.isHeadRequest,
|
||||||
timeout: options.timeout?.toNumber() || 5000,
|
timeout: options.timeout?.toNumber() || 5000,
|
||||||
doNotFollowRedirects: true,
|
doNotFollowRedirects: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@ -73,7 +73,7 @@ export default class WebsiteMonitor {
|
|||||||
result = await WebsiteRequest.fetch(url, {
|
result = await WebsiteRequest.fetch(url, {
|
||||||
isHeadRequest: false,
|
isHeadRequest: false,
|
||||||
timeout: options.timeout?.toNumber() || 5000,
|
timeout: options.timeout?.toNumber() || 5000,
|
||||||
doNotFollowRedirects: true,
|
doNotFollowRedirects: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user