This commit is contained in:
D. Scott Boggs 2023-10-05 07:36:16 -04:00
parent 5c928afe77
commit e285643644

View file

@ -8,10 +8,10 @@ async function main() {
const server = new Server(
(req, res) => {
if (req.url === '/pfp.png')
req.writeHead(200, { 'Content-Type': 'image/png' })
res.writeHead(200, { 'Content-Type': 'image/png' })
.end(pfp)
else if (req.url === '/favicon.ico')
req.writeHead(200, { 'Content-Type': 'image/vnd.microsoft.icon' })
res.writeHead(200, { 'Content-Type': 'image/vnd.microsoft.icon' })
.end(favicon)
else
res.writeHead(200, { 'Content-Type': 'text/html' })