This commit is contained in:
crusader 2018-03-23 13:00:18 +09:00
parent 258c206988
commit b36507490a
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)