diff --git a/node/rpcstack.go b/node/rpcstack.go index bd19b58b84..74ac4ee36b 100644 --- a/node/rpcstack.go +++ b/node/rpcstack.go @@ -209,7 +209,9 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { if ws != nil && isWebsocket(r) { if checkPath(r, ws.prefix) { ws.ServeHTTP(w, r) + return } + http.Error(w, "not found", http.StatusNotFound) return }