diff --git a/packages/upload-api/src/blob/accept.js b/packages/upload-api/src/blob/accept.js index e06bc0afe..cab830ae9 100644 --- a/packages/upload-api/src/blob/accept.js +++ b/packages/upload-api/src/blob/accept.js @@ -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,