@@ -118,8 +118,6 @@ struct RequestInfo
118118 }
119119};
120120
121-
122-
123121AWSClient::AWSClient (const Aws::Client::ClientConfiguration& configuration,
124122 const std::shared_ptr<Aws::Client::AWSAuthSigner>& signer,
125123 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller) :
@@ -142,7 +140,11 @@ AWSClient::AWSClient(const Aws::Client::ClientConfiguration& configuration,
142140 m_enableClockSkewAdjustment(configuration.enableClockSkewAdjustment),
143141 m_requestCompressionConfig(configuration.requestCompressionConfig),
144142 m_userAgentInterceptor{Aws::MakeShared<smithy::client::UserAgentInterceptor>(AWS_CLIENT_LOG_TAG, configuration, m_retryStrategy->GetStrategyName (), m_serviceName)},
145- m_interceptors{Aws::MakeShared<smithy::client::ChecksumInterceptor>(AWS_CLIENT_LOG_TAG), Aws::MakeShared<smithy::client::features::ChunkingInterceptor>(AWS_CLIENT_LOG_TAG, configuration, m_httpClient->IsDefaultAwsHttpClient ()), m_userAgentInterceptor}
143+ m_interceptors{Aws::MakeShared<smithy::client::ChecksumInterceptor>(AWS_CLIENT_LOG_TAG), Aws::MakeShared<smithy::client::features::ChunkingInterceptor>(AWS_CLIENT_LOG_TAG, [&configuration, this ]() {
144+ ClientConfiguration chunkingConfig = configuration;
145+ chunkingConfig.httpClientChunkedMode = m_httpClient->IsDefaultAwsHttpClient () ? configuration.httpClientChunkedMode : Aws::Client::HttpClientChunkedMode::CLIENT_IMPLEMENTATION;
146+ return chunkingConfig;
147+ }()), m_userAgentInterceptor}
146148{
147149}
148150
@@ -168,7 +170,11 @@ AWSClient::AWSClient(const Aws::Client::ClientConfiguration& configuration,
168170 m_enableClockSkewAdjustment(configuration.enableClockSkewAdjustment),
169171 m_requestCompressionConfig(configuration.requestCompressionConfig),
170172 m_userAgentInterceptor{Aws::MakeShared<smithy::client::UserAgentInterceptor>(AWS_CLIENT_LOG_TAG, configuration, m_retryStrategy->GetStrategyName (), m_serviceName)},
171- m_interceptors{Aws::MakeShared<smithy::client::ChecksumInterceptor>(AWS_CLIENT_LOG_TAG, configuration), Aws::MakeShared<smithy::client::features::ChunkingInterceptor>(AWS_CLIENT_LOG_TAG, configuration, m_httpClient->IsDefaultAwsHttpClient ()), m_userAgentInterceptor}
173+ m_interceptors{Aws::MakeShared<smithy::client::ChecksumInterceptor>(AWS_CLIENT_LOG_TAG, configuration), Aws::MakeShared<smithy::client::features::ChunkingInterceptor>(AWS_CLIENT_LOG_TAG, [&configuration, this ]() {
174+ ClientConfiguration chunkingConfig = configuration;
175+ chunkingConfig.httpClientChunkedMode = m_httpClient->IsDefaultAwsHttpClient () ? configuration.httpClientChunkedMode : Aws::Client::HttpClientChunkedMode::CLIENT_IMPLEMENTATION;
176+ return chunkingConfig;
177+ }()), m_userAgentInterceptor}
172178{
173179}
174180
0 commit comments