From 5e3c8c508f9fe574c500264bbd5bc7e51c6947d4 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Thu, 15 Sep 2022 20:07:52 +0200 Subject: [PATCH] fix error when ratelimiting --- server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server.js b/server.js index 6a7646b..4a1325e 100644 --- a/server.js +++ b/server.js @@ -295,7 +295,6 @@ function increaseIndividualCall(url, req) { } INDIVIDUAL_CALLS[ip][url]++; if (INDIVIDUAL_CALLS[ip][url] >= conf["max"]) { - res.status(429) console.log(5, "ratelimiting someone on", url, INDIVIDUAL_CALLS[ip][url], conf["max"]); return false; }