mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
retry ping > 500 too
This commit is contained in:
parent
b0cce6dbde
commit
94678be85e
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default async function handler(req, res) {
|
||||||
});
|
});
|
||||||
let endTime = performance.now();
|
let endTime = performance.now();
|
||||||
|
|
||||||
if (status >= 400 && status < 500) {
|
if (status >= 400) {
|
||||||
// try one more time as a GET in case HEAD is rejected for whatever reason
|
// try one more time as a GET in case HEAD is rejected for whatever reason
|
||||||
startTime = performance.now();
|
startTime = performance.now();
|
||||||
[status] = await httpProxy(pingURL);
|
[status] = await httpProxy(pingURL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue