fix: need to decode the original message as its not msgpack
This commit is contained in:
parent
773a66207d
commit
b542de3cb0
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue