1
0
Fork 0

Add missing 404 response code.

This commit is contained in:
Alexander Andreev 2023-08-13 01:41:58 +04:00
parent 4a29a9754b
commit ffbc027d64
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func main() {
r := httpr.New()
r.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotFound)
web.ErrorXXX("/ Not Found", "", "", r.Referer(), http.StatusNotFound, w)
}