Accept http 401 / 403 for ping
This commit is contained in:
1 parent
1132ac90fb
commit
6d1db78709
2 files changed
+7
-9
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user