fix: need to encode size of paths

This commit is contained in:
Derrick Hammer 2024-03-03 05:34:27 -05:00
parent 59b9e24238
commit a5e5e76e37
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -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)