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

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

d70-t
Copy link
Collaborator

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

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.

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