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

Getting IPFS directory only works when adding ?noResolve to the query string #17

Open
dirkcuys opened this issue Feb 16, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@dirkcuys
Copy link

dirkcuys commented Feb 16, 2023

According to the documentation you can use the 'X-resolve' header:

await fetch('ipfs://CID/example/', {headers: {'X-Resolve': none}})

But looking through the code it seems like the only way is by passing adding 'noResolve' to the query string

@dirkcuys dirkcuys changed the title Getting IPFS directory only works when adding ?noResolve to the search string Getting IPFS directory only works when adding ?noResolve to the query string Feb 16, 2023
@RangerMauve
Copy link
Owner

Ah! Sorry the docs are messed up. I changed it to just use noResolve accross the protocols since headers make it harder to link to and having the duplication adds extra confusion. :x

@RangerMauve RangerMauve added the documentation Improvements or additions to documentation label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants