turn do not redirect to false

This commit is contained in:
Simon Larsen 2024-10-16 15:08:56 +01:00
parent a39db4ffc9
commit d89ee302fd
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ export default class ApiMonitor {
undefined,
{
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
doNotFollowRedirects: false,
},
);
@ -84,7 +84,7 @@ export default class ApiMonitor {
undefined,
{
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
doNotFollowRedirects: false,
},
);
}

View File

@ -61,7 +61,7 @@ export default class WebsiteMonitor {
let result: WebsiteResponse = await WebsiteRequest.fetch(url, {
isHeadRequest: options.isHeadRequest,
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
doNotFollowRedirects: false,
});
if (
@ -73,7 +73,7 @@ export default class WebsiteMonitor {
result = await WebsiteRequest.fetch(url, {
isHeadRequest: false,
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
doNotFollowRedirects: false,
});
}