diff options
| author | Mistivia <i@mistivia.com> | 2025-09-15 18:45:56 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-09-15 18:46:20 +0800 |
| commit | e0ce1cce786639249823b394d01ff42c45183d8b (patch) | |
| tree | d67eb6a02835a18be636b672e46136a9d3440901 | |
| parent | b66b250bc16937a94ff8a3ba57abee77501cf540 (diff) | |
fix oss that do not support checksum
| -rw-r--r-- | s3_client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/s3_client.cpp b/s3_client.cpp index 668e902..220542a 100644 --- a/s3_client.cpp +++ b/s3_client.cpp @@ -29,6 +29,8 @@ void S3Client_init() { Aws::Auth::AWSCredentials credentials; config.endpointOverride = ezlive_config->endpoint; config.region = ezlive_config->region; + config.checksumConfig.requestChecksumCalculation = Aws::Client::RequestChecksumCalculation::WHEN_REQUIRED; + config.checksumConfig.responseChecksumValidation = Aws::Client::ResponseChecksumValidation::WHEN_REQUIRED; credentials = Aws::Auth::AWSCredentials(ezlive_config->access_key, ezlive_config->secret_key); s3client = new Aws::S3::S3Client(credentials, nullptr, config); } |
