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