typo
This commit is contained in:
parent
5c928afe77
commit
e285643644
4
index.js
4
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' })
|
||||
|
|
Loading…
Reference in a new issue