diff --git a/src/utils/vidosResolver.ts b/src/utils/vidosResolver.ts index d805362..2be26c8 100644 --- a/src/utils/vidosResolver.ts +++ b/src/utils/vidosResolver.ts @@ -26,7 +26,11 @@ export class VidosResolver implements Resolvable { }, }); - if (resolutionResponse.ok) return resolutionResponse.json(); + if (resolutionResponse.ok) { + return resolutionResponse.json(); + } else if (resolutionResponse.headers.get("content-type")?.includes("application/json")) { + return resolutionResponse.json(); + } throw new Error("Failed to resolve DID"); }