Add missing 404 response code.
This commit is contained in:
parent
4a29a9754b
commit
ffbc027d64
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user