Skip to content
This repository was archived by the owner on Jul 23, 2023. It is now read-only.

Commit 8c04d9a

Browse files
committed
always add jsonrpc: 2.0
1 parent f1652aa commit 8c04d9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rpc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func handleRPC(w http.ResponseWriter, r *http.Request) {
2121
w.WriteHeader(400)
2222
return
2323
}
24+
req.Version = "2.0"
2425

2526
// check permissions
2627
if permissions, ok := r.Context().Value("permissions").(map[string]bool); ok {

0 commit comments

Comments
 (0)