From e285643644d91786a12fc0f53a88f62504922607 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Thu, 5 Oct 2023 07:36:16 -0400 Subject: [PATCH] typo --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' })