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

Commit

Permalink
always add jsonrpc: 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Mar 11, 2022
1 parent f1652aa commit 8c04d9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8c04d9a

Please sign in to comment.