diff --git a/handler.go b/handler.go index abdf6f2..bfe8e1d 100644 --- a/handler.go +++ b/handler.go @@ -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 } }