SyntaxFix
Write A Post
Hire A Developer
Questions
OP: "I would love if there were a way to do it where I didn't have to know the host address..."
response.writeHead(301, { Location: "http" + (request.socket.encrypted ? "s" : "") + "://" + request.headers.host + newRoom }); response.end();