Skip to content

Commit

Permalink
Merge pull request #83 from zakstucke/master
Browse files Browse the repository at this point in the history
clone file.encodedName so the stream can be transferred safely
  • Loading branch information
Touffy authored Apr 19, 2024
2 parents 8c1151b + 6450aac commit 8e59d0c
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 @@ -58,7 +58,7 @@ export async function* loadFiles(files: ForAwaitable<ZipEntryDescription & 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)
if (file.isFile) {
yield* fileData(file)
}
Expand Down

0 comments on commit 8e59d0c

Please sign in to comment.