From d89ee302fd74250478614ea8a960f1d25781fbb1 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 16 Oct 2024 15:08:56 +0100 Subject: [PATCH] turn do not redirect to false --- Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts | 4 ++-- Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts index f8149b8710..6e0a100f7f 100644 --- a/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts @@ -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, }, ); } diff --git a/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts index b3187320cc..1c65943733 100644 --- a/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts @@ -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, }); }