Skip to content

Commit

Permalink
Merge branch 'bugfix/ARSN-1/remove-contentmd5-check-azure' into tmp/o…
Browse files Browse the repository at this point in the history
…ctopus/w/8.1/bugfix/ARSN-1/remove-contentmd5-check-azure
  • Loading branch information
bert-e committed Jul 6, 2021
2 parents 16a5e6a + 7aafd05 commit 0f63de2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/s3middleware/azureHelpers/mpuUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ azureMpuUtils.overviewMpuKey = 'azure_mpu';
azureMpuUtils.maxSubPartSize = 104857600;
azureMpuUtils.zeroByteETag = crypto.createHash('md5').update('').digest('hex');


// TODO: S3C-4657
azureMpuUtils.padString = (str, category) => {
const _padFn = {
left: (str, padString) =>
Expand Down Expand Up @@ -124,7 +124,8 @@ log, cb) => {
`Error returned from Azure: ${err.message}`)
);
}
const eTag = objectUtils.getHexMD5(result.headers['content-md5']);
const md5 = result.headers['content-md5'] || '';
const eTag = objectUtils.getHexMD5(md5);
return cb(null, eTag, size);
}], log, cb);
};
Expand Down

0 comments on commit 0f63de2

Please sign in to comment.