Skip to content

Commit

Permalink
do not follow redirects when monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Oct 16, 2024
1 parent 1b3cde3 commit bbced15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Probe/Utils/Monitors/MonitorTypes/ApiMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default class ApiMonitor {
undefined,
{
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
},
);

Expand Down
1 change: 1 addition & 0 deletions Probe/Utils/Monitors/MonitorTypes/WebsiteMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class WebsiteMonitor {
result = await WebsiteRequest.fetch(url, {
isHeadRequest: false,
timeout: options.timeout?.toNumber() || 5000,
doNotFollowRedirects: true,
});
}

Expand Down

0 comments on commit bbced15

Please sign in to comment.