fix: need to decode the original message as its not msgpack

This commit is contained in:
Derrick Hammer 2024-01-10 07:20:33 -05:00
parent 773a66207d
commit b542de3cb0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 5 deletions

View File

@ -39,12 +39,9 @@ func (s *RegistryEntryRequest) EncodeMsgpack(enc *msgpack.Encoder) error {
} }
func (s *RegistryEntryRequest) DecodeMessage(dec *msgpack.Decoder) error { func (s *RegistryEntryRequest) DecodeMessage(dec *msgpack.Decoder) error {
pk, err := dec.DecodeBytes() data := s.IncomingMessage().Original()
if err != nil {
return err
}
sre, err := UnmarshalSignedRegistryEntry(pk) sre, err := UnmarshalSignedRegistryEntry(data)
if err != nil { if err != nil {
return err return err
} }