Skip to content

Commit bb368fb

Browse files
committed
fix reviews
1 parent 341e5ba commit bb368fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/aws-cpp-sdk-core/source/client/ClientConfiguration.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ void setLegacyClientConfigurationParameters(ClientConfiguration& clientConfig)
210210
// Set chunking mode based on HTTP client type
211211
// AWS built-in clients should use SDK's ChunkingInterceptor (DEFAULT mode)
212212
// Custom clients should handle chunking themselves (CLIENT_IMPLEMENTATION mode)
213-
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::DEFAULT;
213+
if (clientConfig.httpLibOverride == Aws::Http::TransferLibType::DEFAULT_CLIENT) {
214+
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::CLIENT_IMPLEMENTATION;
215+
} else {
216+
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::DEFAULT;
217+
}
214218

215219
clientConfig.followRedirects = FollowRedirectsPolicy::DEFAULT;
216220
clientConfig.disableExpectHeader = false;

0 commit comments

Comments
 (0)