Skip to content

Commit 659369e

Browse files
committed
Fix very weird issue
1 parent d8f82a5 commit 659369e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/IO/S3/PocoHTTPClient.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ PocoHTTPClientConfiguration::PocoHTTPClientConfiguration(
135135

136136
/// NOTE: In some places AWS SDK expects it to be non-null.
137137
telemetryProvider = smithy::components::tracing::NoopTelemetryProvider::CreateProvider();
138+
139+
/// NOTE: Without these settings AWS SDK enable transfer-encoding: chunked and content-encoding: aws-chunked
140+
/// We don't use them and MinIO server doesn't support them.
141+
checksumConfig.requestChecksumCalculation = Aws::Client::RequestChecksumCalculation::WHEN_REQUIRED;
142+
checksumConfig.responseChecksumValidation = Aws::Client::ResponseChecksumValidation::WHEN_REQUIRED;
138143
}
139144

140145
void PocoHTTPClientConfiguration::updateSchemeAndRegion()

0 commit comments

Comments
 (0)