Skip to content

Commit

Permalink
fix: percent-encode filename.car
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 9, 2022
1 parent 5eaeb4c commit 52f5b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function getCarLink (files, gatewayUrl, ipfs) {

if (files.length === 1) {
cid = files[0].cid
filename = files[0].name
filename = encodeURIComponent(files[0].name)
} else {
cid = await makeCIDFromFiles(files, ipfs)
}
Expand Down

0 comments on commit 52f5b28

Please sign in to comment.