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 @@ -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 ;
You can’t perform that action at this time.
0 commit comments