From bd9ced57aa90b5610d85d488b043d28dc0f12c68 Mon Sep 17 00:00:00 2001 From: erin Date: Tue, 23 Sep 2025 15:13:20 +0000 Subject: [PATCH] ah i see i fucked up --- fix.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix.mjs b/fix.mjs index 15a1b9f..ef3a7ba 100644 --- a/fix.mjs +++ b/fix.mjs @@ -21,7 +21,7 @@ createServer(async (request, response) => { } else if (input.startsWith('http://')) { input = input.slice(7); } else if (!input) { // "homepage" - return response.writeHead(301).end('https://git.ewin.moe/erin/fix-my-shit'); + return response.writeHead(301, {'Location': 'https://git.ewin.moe/erin/fix-my-shit'}).end(); } for (const site of sites) { let match = input.match(site.pattern);