Fixed error with writing after response already sent to client
This commit is contained in:
@@ -162,9 +162,6 @@ http
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- anything else ---------- */
|
|
||||||
res.writeHead(404).end();
|
|
||||||
})
|
})
|
||||||
.listen(PORT, () => {
|
.listen(PORT, () => {
|
||||||
consola.info(`Listening on port :${PORT}`);
|
consola.info(`Listening on port :${PORT}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user