From 11f0a8318bd8091d1caaf6d47df1bacf83646046 Mon Sep 17 00:00:00 2001 From: cui Date: Wed, 10 Jun 2026 14:30:52 +0800 Subject: [PATCH] node: fix wrong status code in ws (#35111) Fixes an issue where we would falsely return 400 when we should return 200 because the request was served successfully --------- Co-authored-by: Felix Lange --- node/rpcstack.go | 2 ++ 1 file changed, 2 insertions(+) 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 }