mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Accept http 401 / 403 for ping
This commit is contained in:
parent
1132ac90fb
commit
6d1db78709
2 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue