This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
Add resolver support for CIDv1 and Base32 #8
Labels
kind/bug
A bug in existing code (including security flaws)
kind/enhancement
A net-new feature or improvement to an existing feature
(part of Migration to CIDv1 https://github.com/ipfs/ipfs/issues/337)
Problem
Right now only
multihash
resolver exists and it means directory listing assumes everything is CIDv0 in Base58btc:js-ipfs-http-response/src/resolver.js
Line 54 in 4f1ace2
js-ipfs-http-response/src/resolver.js
Line 75 in 4f1ace2
This means response for https://js.ipfs.io/ipfs/bafybeibrpdf53xmnhkspaiyo46hqw6avk3vo3tvggwc2szzybd2a5cn24y/img/ is an error:
(when js-ipfs is running in service worker)
Solution
resolver.multihash
should be removed/deprecated and replaced by base-agnosticresolver.cid
The text was updated successfully, but these errors were encountered: