fix: need to encode size of paths
This commit is contained in:
parent
59b9e24238
commit
a5e5e76e37
|
@ -174,6 +174,11 @@ func (wafm *WebAppFileMap) Sort() {
|
|||
func (wafm *WebAppFileMap) EncodeMsgpack(encoder *msgpack.Encoder) error {
|
||||
wafm.Sort()
|
||||
|
||||
err := encoder.EncodeArrayLen(wafm.Size())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, key := range wafm.Keys() {
|
||||
value, _ := wafm.Get(key)
|
||||
|
||||
|
|
Loading…
Reference in New Issue