shada: When packing header, pack mapping keys as strings, not binary

This commit is contained in:
ZyX
2015-08-08 03:31:54 +03:00
parent 12a31c70c1
commit fce9590cfc

View File

@@ -1822,7 +1822,11 @@ static bool shada_pack_entry(msgpack_packer *const packer,
break;
}
case kSDItemHeader: {
msgpack_rpc_from_dictionary(entry.data.header, spacker);
msgpack_pack_map(spacker, entry.data.header.size);
for (size_t i = 0; i < entry.data.header.size; i++) {
PACK_STRING(entry.data.header.items[i].key);
msgpack_rpc_from_object(entry.data.header.items[i].value, spacker);
}
break;
}
}