Skip to content

use CAR requests when requesting directory listings and file info - #40

Merged
d70-t merged 2 commits into
mainfrom
ls_v2
Apr 17, 2025
Merged

use CAR requests when requesting directory listings and file info#40
d70-t merged 2 commits into
mainfrom
ls_v2

Conversation

@d70-t

@d70-t d70-t commented Oct 14, 2024

Copy link
Copy Markdown
Collaborator

As shown in #39, some gateways won't accept raw format in requests including a path. This PR uses car requests instead and fixes #39.

This fix is still a bit ugly, as it doesn't use the additional blocks in the returned CAR to verify the correctness of the response.

d70-t added 2 commits October 15, 2024 00:52
Trustless gateways may not always return raw IPLD blocks when a path is
requested. They should however always return car.

Fixes #39
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

Successfully merging this pull request may close these issues.

Ls / listdir fails when using a public gateway because a non-CID path is requested

1 participant