Skip to content

Commit d6e2755

Browse files
kai-gittzefir-git
andauthored
Update src/index.ts
Co-authored-by: Zefir <[email protected]> Signed-off-by: Kai <[email protected]>
1 parent 2a05b1f commit d6e2755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const files = await Promise.all(filePaths.map(async filePath => {
6868
const res = await fetch(url);
6969
const data = await res.blob();
7070

71-
return new File([data], path.basename(url.pathname));
71+
return new File([data], path.basename(url.pathname), {type: data.type});
7272
}
7373

7474
const data = await fs.readFile(filePath);

0 commit comments

Comments
 (0)