Merge pull request #138 from unistack-org/errorHandler

return after errorHandler
This commit is contained in:
2023-02-05 11:33:13 +03:00
committed by GitHub

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
}
}