RangerMauve / js-ipfs-fetch

Use the same `fetch()` API browsers provide for HTTP, but for IPFS
https://youtu.be/kI9Issf3MNc?t=1606
MIT License
65 stars 8 forks source link

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

Open dirkcuys opened 1 year ago

dirkcuys commented 1 year ago

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

RangerMauve commented 1 year ago

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