ah i see i fucked up
This commit is contained in:
parent
b9b71ebf56
commit
bd9ced57aa
1 changed files with 1 additions and 1 deletions
2
fix.mjs
2
fix.mjs
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue