From 70520c2a9d9fae36da47d966ac49709aed216c7b Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 24 Sep 2025 20:26:27 +0200 Subject: [PATCH] Fix very weird issue (cherry picked from commit 659369ead95b50a41a7c3fe789495c6831b97b4c) --- src/IO/S3/PocoHTTPClient.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/IO/S3/PocoHTTPClient.cpp b/src/IO/S3/PocoHTTPClient.cpp index 7f8b374de4f1..a002d298710d 100644 --- a/src/IO/S3/PocoHTTPClient.cpp +++ b/src/IO/S3/PocoHTTPClient.cpp @@ -133,6 +133,11 @@ PocoHTTPClientConfiguration::PocoHTTPClientConfiguration( LOG_INFO(getLogger("PocoHTTPClientConfiguration"), "Jitter factor for the retry strategy must be within the [0, 1], clamping"); retry_strategy.jitter_factor = std::clamp(retry_strategy.jitter_factor, 0.0, 1.0); } + + /// NOTE: Without these settings AWS SDK enable transfer-encoding: chunked and content-encoding: aws-chunked + /// We don't use them and MinIO server doesn't support them. + checksumConfig.requestChecksumCalculation = Aws::Client::RequestChecksumCalculation::WHEN_REQUIRED; + checksumConfig.responseChecksumValidation = Aws::Client::ResponseChecksumValidation::WHEN_REQUIRED; } void PocoHTTPClientConfiguration::updateSchemeAndRegion()