From f9f074e73fe706f35600a2e53d842136c5a040b4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 17 Apr 2023 02:36:32 -0400 Subject: [PATCH] *replace protocol format with path format --- src/contentProviders/ipfsProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/contentProviders/ipfsProvider.ts b/src/contentProviders/ipfsProvider.ts index b2391c7..a7bbd0b 100644 --- a/src/contentProviders/ipfsProvider.ts +++ b/src/contentProviders/ipfsProvider.ts @@ -71,6 +71,8 @@ export default class IpfsProvider extends BaseProvider { let err; let stat: UnixFSStats | null = null; const parsedPath = path.parse(urlPath); + cid = cid.replace("ipns://", "/ipns/"); + cid = cid.replace("ipfs://", "/ipfs/"); try { if (ipnsPath(cid)) { const cidHash = cid.replace("/ipns/", "");