return after errorHandler #138

Merged
vtolstov merged 2 commits from errorHandler into v3 2023-02-05 11:33:13 +03:00

View File

@ -117,6 +117,7 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
break
} else if err == rhttp.ErrMethodNotAllowed && !h.registerRPC {
h.errorHandler(ctx, nil, w, r, fmt.Errorf("not matching route found"), http.StatusNotFound)
return
}
}