Accept http 401 / 403 for ping

This commit is contained in:
shamoon 2023-04-14 10:32:12 -07:00
parent 1132ac90fb
commit 6d1db78709
2 changed files with 7 additions and 9 deletions

View file

@ -21,7 +21,7 @@ export default async function handler(req, res) {
});
let endTime = performance.now();
if (status >= 400) {
if (status > 403) {
// try one more time as a GET in case HEAD is rejected for whatever reason
startTime = performance.now();
[status] = await httpProxy(pingURL);