From ad7574c924d1deec807dde93cbab1574846d6f4b Mon Sep 17 00:00:00 2001 From: Marti Martz Date: Fri, 2 Dec 2022 15:14:58 -0700 Subject: [PATCH] Paste malfunction (#1976) * Someday Ubuntu/Kubuntu will fix some including the disappearing spaces. Post #1975 Auto-merge --- routes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes.js b/routes.js index d4947e992..3d0e71816 100644 --- a/routes.js +++ b/routes.js @@ -55,6 +55,8 @@ var installCapLimiter = rateLimit({ windowMs: waitInstallCapMin * 60 * 1000, // n minutes for all stores max: 50, // limit each IP to n requests per windowMs for memory store or expireTimeMs for mongo store handler: function (aReq, aRes, aNext, aOptions) { + var cmd = null; + if (aReq.rateLimit.current < aReq.rateLimit.limit + 4) { // Midddlware options if (!aRes.oujsOptions) {