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
commit 034298b7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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