aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rwxr-xr-xserver.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 6206103..cc644e6 100755
--- a/server.js
+++ b/server.js
@@ -93,7 +93,7 @@ app.use('/', function welcomePage(req, res, next) {
93}); 93});
94app.use('/', function (req, res, next) { 94app.use('/', function (req, res, next) {
95 if (config.folderListingEnabled) return next(); 95 if (config.folderListingEnabled) return next();
96 res.sendFile(__dirname + '/frontend/404.html'); 96 res.status(404).sendFile(__dirname + '/frontend/404.html');
97}); 97});
98app.use('/', serveIndex(ROOT_FOLDER, { icons: true })); 98app.use('/', serveIndex(ROOT_FOLDER, { icons: true }));
99app.use(lastMile()); 99app.use(lastMile());