diff --git a/router.go b/router.go index c5d0cda4..52c56632 100644 --- a/router.go +++ b/router.go @@ -690,7 +690,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request) // filter wrong http method if !HTTPMETHOD[r.Method] { - http.Error(rw, "Method Not Allowed", http.StatusMethodNotAllowed) + exception("405", context) goto Admin }