fix: use file cid not root cid

This commit is contained in:
Derrick Hammer 2023-11-18 07:28:16 -05:00
parent c0892c10c3
commit 9767e82751
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default class S5Provider implements ContentProvider {
headers["Content-Type"] = file.contentType as string; headers["Content-Type"] = file.contentType as string;
return new Response( return new Response(
new Blob([(await this._client.cat(cid)) as Uint8Array]), new Blob([(await this._client.cat(file.cid)) as Uint8Array]),
{ {
headers, headers,
}, },