From 5eb4778f53a9b40ee24bb5b15921b53aa3cac4d3 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 14 Oct 2022 14:19:15 -0700 Subject: [PATCH] Use HEAD request --- src/pages/api/ping.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/api/ping.js b/src/pages/api/ping.js index 46ffda65..8c919f0a 100644 --- a/src/pages/api/ping.js +++ b/src/pages/api/ping.js @@ -13,7 +13,9 @@ export default async function handler(req, res) { }); } - const [status] = await httpProxy(pingURL); + const [status] = await httpProxy(pingURL, { + method: "HEAD" + }); return res.status(200).json({ status,