Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get vs cat, get possibly returns TAR #111

Open
mrd0ll4r opened this issue Sep 21, 2022 · 0 comments
Open

get vs cat, get possibly returns TAR #111

mrd0ll4r opened this issue Sep 21, 2022 · 0 comments

Comments

@mrd0ll4r
Copy link
Contributor

I noticed a difference in the data I get with get vs cat. Using this example CID, QmYPP3BovR2m8UqCZxFbdXSit6SKgExxDkFAPLqiGsap4X, which is 17091 bytes (confirmed via ipfs get and ipfs cat using go-ipfs v0.14.0):

get returns 18944 bytes, cat returns 17091 bytes. The extra bytes for get seem to be at the beginning, I believe the response is a TAR. MIME type detection tells me it's application/x-tar.

Looking at the corresponding Go client, they indeed extract the response through tar.

I opened an issue for this in the IPFS docs repo: ipfs/ipfs-docs#1285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant