Skip to content

get vs cat, get possibly returns TAR #111

@mrd0ll4r

Description

@mrd0ll4r

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions