ignore favicon requests

pull/12/head
tycrek 4 years ago
parent 9dfd14a35d
commit 1d275a6aaa
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -73,6 +73,9 @@ function startup() {
// View file // View file
app.get('/:resourceId', (req, res) => { app.get('/:resourceId', (req, res) => {
// Don't process favicon requests
if (req.url.includes('favicon.ico')) return;
let resourceId = req.params.resourceId.split('.')[0]; let resourceId = req.params.resourceId.split('.')[0];
let fileData = fs.readFileSync(path(data[resourceId].path)); let fileData = fs.readFileSync(path(data[resourceId].path));

Loading…
Cancel
Save