Skip to content

Commit

Permalink
don't pass checksumAlgorithm when using MD5
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix committed Nov 18, 2023
1 parent ab6dbdf commit 0822d95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ namespace Aws
TriggerTransferStatusUpdatedCallback(handle);

auto putObjectRequest = m_transferConfig.putObjectTemplate
.WithChecksumAlgorithm(m_transferConfig.checksumAlgorithm)
.WithChecksumAlgorithm(m_transferConfig.computeContentMD5 ? S3::Model::ChecksumAlgorithm::NOT_SET : m_transferConfig.checksumAlgorithm)
.WithBucket(handle->GetBucketName())
.WithKey(handle->GetKey())
.WithContentLength(static_cast<long long>(handle->GetBytesTotalSize()))
Expand Down

0 comments on commit 0822d95

Please sign in to comment.