1
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

View File

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