From b36507490aca122b173b0c3d7f0e770636b15ece Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 23 Mar 2018 13:00:18 +0900 Subject: [PATCH] ing --- protocol/json/client_response.go | 1 + protocol/json/server_request.go | 1 + 2 files changed, 2 insertions(+) diff --git a/protocol/json/client_response.go b/protocol/json/client_response.go index 5c53b1a..eddb1da 100644 --- a/protocol/json/client_response.go +++ b/protocol/json/client_response.go @@ -70,6 +70,7 @@ func newClientResponseCodec(r io.Reader, codec codec.Codec) (protocol.ClientResp if nil == r { return nil, io.EOF } + decoder.UseNumber() res := &clientResponse{} err := decoder.Decode(res) diff --git a/protocol/json/server_request.go b/protocol/json/server_request.go index 9f0d955..a446101 100644 --- a/protocol/json/server_request.go +++ b/protocol/json/server_request.go @@ -42,6 +42,7 @@ func newServerRequestCodec(r io.Reader, codec codec.Codec) (protocol.ServerReque if nil == r { return nil, io.EOF } + decoder.UseNumber() req := &serverRequest{} err := decoder.Decode(req)