Commit 4d8f08f9 by Johannes Zellner

Corretly send 404 status codes

1 parent 459517d3
Showing with 4 additions and 3 deletions
......@@ -74,4 +74,6 @@
* Minor interface improvements
[5.4.0]
* Use new Cloudron base image
\ No newline at end of file
* Use new Cloudron base image
* Send 404 status code correctly
......@@ -93,7 +93,7 @@ app.use('/', function welcomePage(req, res, next) {
});
app.use('/', function (req, res, next) {
if (config.folderListingEnabled) return next();
res.sendFile(__dirname + '/frontend/404.html');
res.status(404).sendFile(__dirname + '/frontend/404.html');
});
app.use('/', serveIndex(ROOT_FOLDER, { icons: true }));
app.use(lastMile());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!