rpc: Fix json rpc to handle array and object request params.

rpc/v2/json2 code has a bug where it treats all jsonrpc 2.0
request params like an 'object'. In accordance with the spec
it could be both 'object' or an 'array'.

Handle both cases.
This commit is contained in:
Harshavardhana
2016-02-13 18:50:21 -08:00
parent 40e8893fb9
commit e59ceba51b
3 changed files with 27 additions and 16 deletions

4
vendor/vendor.json vendored
View File

@@ -44,8 +44,8 @@
},
{
"path": "github.com/gorilla/rpc/v2/json2",
"revision": "839c4c31c6bb12c15f41802cf89325aa89439ac3",
"revisionTime": "2015-07-14T15:53:15-07:00"
"revision": "64e20900b8aa38bb0771dec71ba3bcc2b07fc8ec",
"revisionTime": "2015-11-05T07:45:51+08:00"
},
{
"path": "github.com/mattn/go-isatty",