Skip to content

Commit

Permalink
fix: encodeURIComponent on bucket origin (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored May 14, 2024
1 parent 50eeeb5 commit 5618644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upload-api/src/blob/accept.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function blobAcceptProvider(context) {
const content = createLink(rawCode, digest)
const url =
/** @type {API.URI<'https:'>} */
(`https://w3s.link/ipfs/${content}?format=raw&origin=r2://${R2_REGION}/${R2_BUCKET}`)
(`https://w3s.link/ipfs/${content}?format=raw&origin=${encodeURIComponent(`r2://${R2_REGION}/${R2_BUCKET}`)}`)

const locationClaim = await Assert.location.delegate({
issuer: context.id,
Expand Down

0 comments on commit 5618644

Please sign in to comment.