From 0754a715ed55faaece90828739e73928e55b31a7 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 26 Jul 2024 18:12:28 -0700 Subject: [PATCH] fix: redirect code --- package-lock.json | 4 ++-- package.json | 2 +- workers/contact/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index dbad7003..a82a5fd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.13.0", + "version": "20.13.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.13.0", + "version": "20.13.1", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 80657646..5773c9dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.13.0", + "version": "20.13.1", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/workers/contact/index.js b/workers/contact/index.js index c54b408e..6658bb10 100644 --- a/workers/contact/index.js +++ b/workers/contact/index.js @@ -14,7 +14,7 @@ export default { const submissions = ipSubmissions.get(ip).filter(time => currentTime - time < TIME_FRAME) - if (submissions.length >= RATE_LIMIT) return Response.redirect('https://coryd.dev/rate-limit', 429) + if (submissions.length >= RATE_LIMIT) return Response.redirect('https://coryd.dev/rate-limit', 301) submissions.push(currentTime) ipSubmissions.set(ip, submissions)