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(
|
const server = new Server(
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
if (req.url === '/pfp.png')
|
if (req.url === '/pfp.png')
|
||||||
req.writeHead(200, { 'Content-Type': 'image/png' })
|
res.writeHead(200, { 'Content-Type': 'image/png' })
|
||||||
.end(pfp)
|
.end(pfp)
|
||||||
else if (req.url === '/favicon.ico')
|
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)
|
.end(favicon)
|
||||||
else
|
else
|
||||||
res.writeHead(200, { 'Content-Type': 'text/html' })
|
res.writeHead(200, { 'Content-Type': 'text/html' })
|
||||||
|
|
Loading…
Reference in a new issue