Skip to content

Commit c31838b

Browse files
committed
fix reviews
1 parent f2ccf45 commit c31838b

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
@@ -224,7 +224,11 @@ void setLegacyClientConfigurationParameters(ClientConfiguration& clientConfig)
224224
// Set chunking mode based on HTTP client type
225225
// AWS built-in clients should use SDK's ChunkingInterceptor (DEFAULT mode)
226226
// Custom clients should handle chunking themselves (CLIENT_IMPLEMENTATION mode)
227-
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::DEFAULT;
227+
if (clientConfig.httpLibOverride == Aws::Http::TransferLibType::DEFAULT_CLIENT) {
228+
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::CLIENT_IMPLEMENTATION;
229+
} else {
230+
clientConfig.httpClientChunkedMode = HttpClientChunkedMode::DEFAULT;
231+
}
228232

229233
clientConfig.followRedirects = FollowRedirectsPolicy::DEFAULT;
230234
clientConfig.disableExpectHeader = false;

0 commit comments

Comments
 (0)