Skip to content

Commit

Permalink
fix: checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jun 6, 2024
1 parent ea284d8 commit 91b65cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/upload-api/test/handlers/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ export const test = {
assert.ok(!secondNext.accept.receipt, 'accept receipt was not received')

// Store the blob to the address
console.log(address.url)
const goodPut = await fetch(address.url, {
method: 'PUT',
mode: 'cors',
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/test/storage/blobs-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class BlobsStorage {
region,
})

const checksum = base64pad.baseEncode(digest.bytes)
const checksum = base64pad.baseEncode(digest.digest)
const { search, hash } = sig.sign({
key: contentKey(digest),
checksum,
Expand Down

0 comments on commit 91b65cf

Please sign in to comment.