From 3431217a095cc99a1f28ac2de2b2b09e65176538 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 15 Nov 2025 01:42:22 +0000 Subject: [PATCH] Don't respond with a completely blank 404 page. We respond to all other errors with a simple, 1-line explanation that you could see when using e.g. curl. The one case of "site is found and the path is a normal path, but it doesn't exist and the 404 page does not exist either" was unhandled by accident. --- src/pages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages.go b/src/pages.go index 08ff4c7..0e4addd 100644 --- a/src/pages.go +++ b/src/pages.go @@ -202,6 +202,7 @@ func getPage(w http.ResponseWriter, r *http.Request) error { entryPath = notFoundPage continue } else { + reader = bytes.NewReader([]byte("not found\n")) break } } else if entry.GetType() == Type_InlineFile {