This commit is contained in:
crusader 2017-11-02 20:03:35 +09:00
parent a32e442360
commit 2af62df399

View File

@ -164,7 +164,7 @@ func (scr *ServerCodecRequest) ReadParams(args []interface{}) error {
if scr.err == nil && scr.request.Params != nil {
// Note: if scr.request.Params is nil it's not an error, it's an optional member.
// JSON params structured object. Unmarshal to the args object.
if err := json.Unmarshal(*scr.request.Params, args); err != nil {
if err := json.Unmarshal(*scr.request.Params, &args); err != nil {
// Clearly JSON params is not a structured object,
// fallback and attempt an unmarshal with JSON params as
// array value and RPC params is struct. Unmarshal into