the redirects are not meant to be permanent

This commit is contained in:
erin 2023-09-08 07:44:04 -04:00
parent 71ec07692f
commit 27fbc46190
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc

View file

@ -9,7 +9,7 @@ const text = (response, body, code = 200) => {
response.writeHead(code, {'Content-Type': 'text/plain'}).write(body); response.writeHead(code, {'Content-Type': 'text/plain'}).write(body);
response.end(); response.end();
}; };
const redirect = (res, url) => res.writeHead(301, {Location: url}).end(); const redirect = (res, url) => res.writeHead(302, {Location: url}).end();
const toSite = (response, from, offset) => { const toSite = (response, from, offset) => {
const index = sites.findIndex(site => site === from); const index = sites.findIndex(site => site === from);