Skip to content

Commit

Permalink
clone file.encodedName so the stream can be transferred safely
Browse files Browse the repository at this point in the history
  • Loading branch information
Touffy committed Apr 19, 2024
1 parent c2dc83b commit 7bacef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function* loadFiles(files: AsyncIterable<ZipFileDescription & Metad
for await (const file of files) {
const flags = flagNameUTF8(file, options.buffersAreUTF8)
yield fileHeader(file, flags)
yield file.encodedName
yield new Uint8Array(file.encodedName)
yield* fileData(file)
yield dataDescriptor(file)

Expand Down

0 comments on commit 7bacef7

Please sign in to comment.