From da16ab6384411e8c50af6c80ddbac08f011c9bfa Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Tue, 30 Jul 2024 10:07:27 -0400 Subject: [PATCH] fix noisy log when MD5 checksum is specified --- src/aws-cpp-sdk-core/source/client/AWSClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp index 8615786ebb0..44dfbe770e3 100644 --- a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp +++ b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp @@ -866,9 +866,9 @@ void AWSClient::AddChecksumToRequest(const std::shared_ptrSetHeaderValue(Http::CONTENT_MD5_HEADER, HashingUtils::Base64Encode(HashingUtils::CalculateMD5(*(GetBodyStream(request))))); } - else + else if (headers.find(CONTENT_MD5_HEADER) == headers.end()) { - AWS_LOGSTREAM_WARN(AWS_CLIENT_LOG_TAG, "Checksum algorithm: " << checksumAlgorithmName << "is not supported by SDK."); + AWS_LOGSTREAM_WARN(AWS_CLIENT_LOG_TAG, "Checksum algorithm: " << checksumAlgorithmName << " is not supported by SDK."); } }