ah i see i fucked up

This commit is contained in:
erin 2025-09-23 15:13:20 +00:00
parent b9b71ebf56
commit bd9ced57aa

View file

@ -21,7 +21,7 @@ createServer(async (request, response) => {
} else if (input.startsWith('http://')) { } else if (input.startsWith('http://')) {
input = input.slice(7); input = input.slice(7);
} else if (!input) { // "homepage" } 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) { for (const site of sites) {
let match = input.match(site.pattern); let match = input.match(site.pattern);