File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/aws-cpp-sdk-core/source/client Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments