From b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 1 Apr 2025 22:16:48 +0800 Subject: Remind visitors of the change --- http_error_page.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'http_error_page.go') diff --git a/http_error_page.go b/http_error_page.go index 85ad859..00ef04b 100644 --- a/http_error_page.go +++ b/http_error_page.go @@ -18,6 +18,11 @@ func errorPage400(w http.ResponseWriter, params map[string]any, msg string) { _ = templates.ExecuteTemplate(w, "400", params) } +func errorPage400Colon(w http.ResponseWriter, params map[string]any) { + w.WriteHeader(http.StatusBadRequest) + _ = templates.ExecuteTemplate(w, "400_colon", params) +} + func errorPage403(w http.ResponseWriter, params map[string]any, msg string) { w.WriteHeader(http.StatusForbidden) params["complete_error_msg"] = msg -- cgit v1.2.3