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);