Hotfix
This commit is contained in:
parent
b673c640e4
commit
e2fabf8cea
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ func Request(body map[string]any) (responseJSON string, err error) {
|
|||
return
|
||||
}
|
||||
body["id"] = id;
|
||||
// Also set JSONRPC-2.0
|
||||
body["jsonrpc"] = "2.0";
|
||||
|
||||
// Marshal JSON to bytes
|
||||
contents, err := json.Marshal(body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue