return after errorHandler #138

Merged
vtolstov merged 2 commits from errorHandler into v3 2023-02-05 11:33:13 +03:00
Showing only changes of commit b5148e90cb - Show all commits

View File

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