From 66e76d9aa271415fb272822a1092224a07d455ec Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Nov 2017 14:07:00 +0900 Subject: [PATCH] Send 404 status correctly --- src/web/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/server.ts b/src/web/server.ts index d8a4713290..e368d3e62d 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -39,6 +39,9 @@ app.get('/apple-touch-icon.png', (req, res) => res.sendFile(`${__dirname}/assets app.use('/assets', express.static(`${__dirname}/assets`, { maxAge: ms('7 days') })); +app.use('/assets', (req, res) => { + res.sendStatus(404); +}); /** * ServiceWroker