diff --git a/index.js b/index.js index 185ff78..667c75d 100644 --- a/index.js +++ b/index.js @@ -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' })