aboutsummaryrefslogtreecommitdiff
path: root/http_error_page.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-21 22:43:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-21 22:43:55 +0800
commit390531026520d851357c422f72ce4ddf4dfc65aa (patch)
tree8a88b172d17b0fc75ca07e5c612997bb9474076a /http_error_page.go
parentGroup not found -> 404 (diff)
downloadforge-390531026520d851357c422f72ce4ddf4dfc65aa.tar.gz
forge-390531026520d851357c422f72ce4ddf4dfc65aa.tar.zst
forge-390531026520d851357c422f72ce4ddf4dfc65aa.zip
errorPage404 should actually do 404
Diffstat (limited to 'http_error_page.go')
-rw-r--r--http_error_page.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/http_error_page.go b/http_error_page.go
index 2dd1f4f..aabc9bd 100644
--- a/http_error_page.go
+++ b/http_error_page.go
@@ -8,5 +8,6 @@ import (
)
func errorPage404(w http.ResponseWriter, params map[string]any) {
+ w.WriteHeader(404)
_ = templates.ExecuteTemplate(w, "404", params)
}