From f491b436e4506a9a56a6a6c4313f4d41a0f3b890 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 12 Aug 2026 01:27:25 -0400 Subject: Use an HTTP redirect for same-origin requests The meta refresh page renders as a broken image when the request came from an on one of our own pages. Such requests are already past the redirect-loop hazard the refresh works around, so send them a real redirect instead. --- src/app.test.ts | 20 ++++++++++++++++++++ src/app.ts | 10 +++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.test.ts b/src/app.test.ts index 5474f8d..59ed352 100644 --- a/src/app.test.ts +++ b/src/app.test.ts @@ -110,6 +110,26 @@ describe("redirects to GitHub", () => { assert.doesNotMatch(body, /