From 94678be85e1c3e0396c665d6fa667e6e947ca560 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 30 Nov 2022 00:46:35 -0800 Subject: [PATCH] retry ping > 500 too --- src/pages/api/ping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/ping.js b/src/pages/api/ping.js index 09934f06e..66eab281c 100644 --- a/src/pages/api/ping.js +++ b/src/pages/api/ping.js @@ -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);