diff --git a/src/ssn/getSolidpkg.ts b/src/ssn/getSolidpkg.ts index 8ea1fcd..51d66a3 100644 --- a/src/ssn/getSolidpkg.ts +++ b/src/ssn/getSolidpkg.ts @@ -44,7 +44,7 @@ export default async function getSolidpkg(product: Product, from: number, to: nu await readLocalFileHeader(stream, true); const solidFileStream = extractFileStream(firstFile, stream); const solidFileArrayBuffer = await streamToArrayBuffer(solidFileStream); - const solidContents = parseBencode(new DataView(solidFileArrayBuffer)) as ISolid; + const solidContents = parseBencode(new DataView(solidFileArrayBuffer.buffer)) as ISolid; //Verify metafile.solid for correctness verifySolidpkg(solidContents, { product, from, to });