From 8c04d9a20c035a5dd75acc70f8924b222251390a Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 11 Mar 2022 07:24:50 -0300 Subject: [PATCH] always add jsonrpc: 2.0 --- rpc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc.go b/rpc.go index cdefe21..5c21889 100644 --- a/rpc.go +++ b/rpc.go @@ -21,6 +21,7 @@ func handleRPC(w http.ResponseWriter, r *http.Request) { w.WriteHeader(400) return } + req.Version = "2.0" // check permissions if permissions, ok := r.Context().Value("permissions").(map[string]bool); ok {