This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get block with empty data (#789)
* Fix for empty data in block. Found this very strange bug when creating DAGNode's with empty buffers for data. streamToValue returns an empty array when the data is empty, which down the line triggers an exception in ipfs-block because this sends an empty array instead of a buffer. * fix: get empty block for response without X-Stream-Output js-ipfs currently does not set the X-Stream-Output header on block.get responses so we also need a check for an empty array on our buffered res. License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io> * chore: update to latest interface-ipfs-core License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
- Loading branch information