diff --git a/lib/jsonrpc/server.go b/lib/jsonrpc/server.go index bb9fa4594..860cd6414 100644 --- a/lib/jsonrpc/server.go +++ b/lib/jsonrpc/server.go @@ -65,7 +65,8 @@ func (s *RPCServer) handleWS(ctx context.Context, w http.ResponseWriter, r *http func (s *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { ctx := r.Context() - if strings.Contains(r.Header.Get("Connection"), "Upgrade") { + h := strings.ToLower(r.Header.Get("Connection")) + if strings.Contains(h, "upgrade") { s.handleWS(ctx, w, r) return }