retry ping > 500 too

pull/594/head
Michael Shamoon 2 years ago
parent b0cce6dbde
commit 94678be85e

@ -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);

Loading…
Cancel
Save