mirror of https://github.com/golang/go.git
Marshalling an empty raw message produces a null rather than omitting the field Instead we do not set the field unless there is no error. Includes a test that reproduced the issue before the fix. Fixes golang/go#39719 Change-Id: I683b8ea55d3425613fc956993280ff51202f49fc Reviewed-on: https://go-review.googlesource.com/c/tools/+/239097 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| servertest | ||
| conn.go | ||
| handler.go | ||
| jsonrpc2.go | ||
| jsonrpc2_test.go | ||
| messages.go | ||
| serve.go | ||
| serve_test.go | ||
| stream.go | ||
| wire.go | ||
| wire_test.go | ||