diff --git a/go.mod b/go.mod index c3bc71b0c..55a6fc7a6 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/pkg/sftp v0.0.0-20160118190721-e84cc8c755ca github.com/ryanuber/go-glob v1.0.0 github.com/stretchr/testify v1.6.1 - github.com/ugorji/go v0.0.0-20151218193438-646ae4a518c1 + github.com/ugorji/go/codec v1.2.4 github.com/zclconf/go-cty v1.7.0 golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 golang.org/x/mobile v0.0.0-20201208152944-da85bec010a2 diff --git a/go.sum b/go.sum index b8f7668ca..027a03b34 100644 --- a/go.sum +++ b/go.sum @@ -610,6 +610,10 @@ github.com/ufilesdk-dev/ufile-gosdk v0.0.0-20190830075812-b4dbc4ef43a6 h1:FAWNiq github.com/ufilesdk-dev/ufile-gosdk v0.0.0-20190830075812-b4dbc4ef43a6/go.mod h1:R5FMQxkQ+QK/9Vz+jfnJP4rZIktYrRcWmuAnbOSkROI= github.com/ugorji/go v0.0.0-20151218193438-646ae4a518c1 h1:U6ufy3mLDgg9RYupntOvAF7xCmNNquyKaYaaVHo1Nnk= github.com/ugorji/go v0.0.0-20151218193438-646ae4a518c1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= +github.com/ugorji/go v1.2.4 h1:cTciPbZ/VSOzCLKclmssnfQ/jyoVyOcJ3aoJyUV1Urc= +github.com/ugorji/go v1.2.4/go.mod h1:EuaSCk8iZMdIspsu6HXH7X2UGKw1ezO4wCfGszGmmo4= +github.com/ugorji/go/codec v1.2.4 h1:C5VurWRRCKjuENsbM6GYVw8W++WVW9rSxoACKIvxzz8= +github.com/ugorji/go/codec v1.2.4/go.mod h1:bWBu1+kIRWcF8uMklKaJrR6fTWQOwAlrIzX22pHwryA= github.com/ulikunitz/xz v0.5.5 h1:pFrO0lVpTBXLpYw+pnLj6TbvHuyjXMfjGeCwSqCVwok= github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= diff --git a/rpc/client.go b/rpc/client.go index 8d33bb26d..90e3244da 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -44,8 +44,7 @@ func newClientWithMux(mux *muxBroker, streamId uint32) (*Client, error) { } h := &codec.MsgpackHandle{ - RawToString: true, - WriteExt: true, + WriteExt: true, } clientCodec := codec.GoRpc.ClientCodec(clientConn, h) diff --git a/rpc/server.go b/rpc/server.go index b5954c7e8..2c2863f84 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -153,8 +153,7 @@ func (s *PluginServer) Serve() { defer stream.Close() h := &codec.MsgpackHandle{ - RawToString: true, - WriteExt: true, + WriteExt: true, } rpcCodec := codec.GoRpc.ServerCodec(stream, h) s.server.ServeCodec(rpcCodec)