From fec2adb72fa7dc53ea63b19a9494cc45ff0d707d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 22:21:59 -0500 Subject: [PATCH] fix: we need to use the msgpack reader and get the rest of the bytes, not use DecodeRaw --- protocol/base/incoming_message.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol/base/incoming_message.go b/protocol/base/incoming_message.go index b4a7489..669f0c1 100644 --- a/protocol/base/incoming_message.go +++ b/protocol/base/incoming_message.go @@ -6,6 +6,7 @@ import ( "git.lumeweb.com/LumeWeb/libs5-go/net" "git.lumeweb.com/LumeWeb/libs5-go/types" "github.com/vmihailenco/msgpack/v5" + "io" "net/url" ) @@ -119,7 +120,8 @@ func (i *IncomingMessageImpl) DecodeMsgpack(dec *msgpack.Decoder) error { i.kind = types.ProtocolMethod(kind) - raw, err := dec.DecodeRaw() + raw, err := io.ReadAll(dec.Buffered()) + if err != nil { return err }