rust-ipfs-api
rust-ipfs-api copied to clipboard
Return type not checked in HTTP GET requests
When querying https://ipfs.io/ipfs/invalidhash it returns a 400 with the following body:
invalid ipfs path: invalid path "/ipfs/invalid": invalid CID: selected encoding not supported
This could be considered a failure, while the library simply returns the aforementioned string. Hence the error code should be checked to avoid this.