Skip to content

Commit 719aa7e

Browse files
committed
jsonrpc2: change gojay.Marshal to gojay.MarshalJSONObject on Reply
1 parent 684c5e3 commit 719aa7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonrpc2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (c *Conn) Reply(ctx context.Context, req *Request, result interface{}, err
271271
resp.Error = New(CodeParseError, err)
272272
}
273273

274-
data, err := gojay.Marshal(resp)
274+
data, err := gojay.MarshalJSONObject(resp)
275275
if err != nil {
276276
c.logger.Error(Send,
277277
zap.Any("resp.ID", resp.ID.Number),

0 commit comments

Comments
 (0)