Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: allow put empty block & add X-Stream-Output header on get #1408

Merged
merged 4 commits into from
Jun 26, 2018

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jun 21, 2018

This PR allows the test in ipfs-inactive/interface-js-ipfs-core#308 to pass.

X-Stream-Output header is added to the block.get reply for parity with go-ipfs.

block.put is altered to allow an empty block to be put (again for feature parity with go-ipfs) but only if there is a multipart file part for it. Error responses have also been improved.

depends on ipfs-inactive/js-ipfs-http-client#789
tested by ipfs-inactive/interface-js-ipfs-core#308

This PR allows the test in ipfs-inactive/interface-js-ipfs-core#308 to pass.

X-Stream-Output header is added to block.get reply for parity with go-ipfs.

block.put is altered to allow an empty block to be put (again for fetaure parity with go-ipfs) but only if there is a multipart file part for it. Error responses have also been improved.

refs ipfs-inactive/js-ipfs-http-client#789
tested by ipfs-inactive/interface-js-ipfs-core#308

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@alanshaw alanshaw changed the title [WIP] fix: allow put empty block & add X-Stream-Output header on get fix: allow put empty block & add X-Stream-Output header on get Jun 26, 2018
@alanshaw alanshaw requested a review from daviddias June 26, 2018 20:22
@alanshaw alanshaw merged commit 52f7aa7 into master Jun 26, 2018
@ghost ghost removed the status/in-progress In progress label Jun 26, 2018
@alanshaw alanshaw deleted the fix/empty-block branch June 26, 2018 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants