diff options
author | Valery Piashchynski <[email protected]> | 2020-03-21 01:03:13 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-03-21 01:03:13 +0300 |
commit | 314b161695daae7dfa8739afb1865a3be5ff53ca (patch) | |
tree | c1342d6c7a1f9ab0f786c2a4572ac0d0e2b818df /protocol.go | |
parent | 96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (diff) |
Update GHA, go1.14 vendored mode
Update Makefile, add go vendor (go 1.14 + php hack)
Update usage of new json package
Diffstat (limited to 'protocol.go')
-rw-r--r-- | protocol.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocol.go b/protocol.go index 6d2b4c9f..b2836289 100644 --- a/protocol.go +++ b/protocol.go @@ -20,7 +20,8 @@ func sendControl(rl goridge.Relay, v interface{}) error { return rl.Send(data, goridge.PayloadControl|goridge.PayloadRaw) } - data, err := json.Marshal(v) + j := json.ConfigCompatibleWithStandardLibrary + data, err := j.Marshal(v) if err != nil { return fmt.Errorf("invalid payload: %s", err) } |