From 9c7aa1319052d919ed478cac468ab04496bb43d3 Mon Sep 17 00:00:00 2001 From: Stefan Ottosson Date: Fri, 24 May 2024 08:29:09 +0200 Subject: [PATCH] fix: remove check that method is correct --- server/routers/api-router.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 94b75bdf..9c572f68 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -60,10 +60,6 @@ router.all("/api/push/:pushToken", async (request, response) => { throw new Error("Monitor not found or not active."); } - if (monitor.method !== request.method) { - throw new Error("Monitor HTTP method (" + monitor.method + ") does not match request (" + request.method + ")."); - } - const previousHeartbeat = await Monitor.getPreviousHeartbeat(monitor.id); let isFirstBeat = true;