retry ping > 500 too

This commit is contained in:
Michael Shamoon 2022-11-30 00:46:35 -08:00
parent b0cce6dbde
commit 94678be85e

View File

@ -21,7 +21,7 @@ export default async function handler(req, res) {
});
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
startTime = performance.now();
[status] = await httpProxy(pingURL);