fix crash on 404
This commit is contained in:
parent
9bdaad843a
commit
8545576415
@ -219,7 +219,7 @@ function Websrv(tlib) {
|
||||
fs.readFile(filePath, (error, content) => {
|
||||
if(error) {
|
||||
if(error.code == 'ENOENT') {
|
||||
res.writeHead(404, { 'Content-Type': contentType });
|
||||
res.writeHead(404);
|
||||
res.end('404 - f0ck you', 'utf-8');
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user