diff options
-rw-r--r-- | CHANGELOG | 4 | ||||
-rwxr-xr-x | server.js | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -74,4 +74,6 @@ | |||
74 | * Minor interface improvements | 74 | * Minor interface improvements |
75 | 75 | ||
76 | [5.4.0] | 76 | [5.4.0] |
77 | * Use new Cloudron base image \ No newline at end of file | 77 | * Use new Cloudron base image |
78 | * Send 404 status code correctly | ||
79 | |||
@@ -93,7 +93,7 @@ app.use('/', function welcomePage(req, res, next) { | |||
93 | }); | 93 | }); |
94 | app.use('/', function (req, res, next) { | 94 | app.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 | }); |
98 | app.use('/', serveIndex(ROOT_FOLDER, { icons: true })); | 98 | app.use('/', serveIndex(ROOT_FOLDER, { icons: true })); |
99 | app.use(lastMile()); | 99 | app.use(lastMile()); |