about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2024-04-15 23:28:49 +0200
committerAlan Pearce2024-04-15 23:28:49 +0200
commitd7ac66da3ccffb266caed2ebce574a4ab5737e79 (patch)
treef9b568e3c7b9fab0cdb498ec14264ce6746eb72d /src
parentbcc39f9b443e23d034523ec72e035c73b7ab9a55 (diff)
downloadwebsite-d7ac66da3ccffb266caed2ebce574a4ab5737e79.tar.lz
website-d7ac66da3ccffb266caed2ebce574a4ab5737e79.tar.zst
website-d7ac66da3ccffb266caed2ebce574a4ab5737e79.zip
send 404 status...
Diffstat (limited to 'src')
-rw-r--r--src/app.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index c47e5e6..53433a9 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -233,6 +233,7 @@ export const server = {
             headers: { location: newpath },
           });
         }
+        status = 404;
         const notfound = files.get("/404.html");
         if (notfound) {
           return serveFile(notfound, status, {