Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: fix zero bytes before message (#11)
When retrieving attestations from archivist currently a bunch of zero bytes are prepended before the message payload. This causes extra data to be transmitted as well as payloads being unable to be parsed as json without the manual removal of these zero bytes. The buffer used when reading from minio was being initialized with both size and capacity equal to 8*1024, which causes this issue. By initialize it with size 0 and capacity 8*1024 the buffer will start filling at index 0. Signed-off-by: Mikhail Swift <[email protected]>
- Loading branch information