Browse Source

fix: simplify S3 client configuration by removing redundant checksum settings (#15474)

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- 1 month ago
parent
commit
cad58658c2
1 changed files with 1 additions and 5 deletions
  1. 1 5
      api/extensions/storage/aws_s3_storage.py

+ 1 - 5
api/extensions/storage/aws_s3_storage.py

@@ -32,11 +32,7 @@ class AwsS3Storage(BaseStorage):
                 aws_access_key_id=dify_config.S3_ACCESS_KEY,
                 endpoint_url=dify_config.S3_ENDPOINT,
                 region_name=dify_config.S3_REGION,
-                config=Config(
-                    s3={"addressing_style": dify_config.S3_ADDRESS_STYLE},
-                    request_checksum_calculation="when_required",
-                    response_checksum_validation="when_required",
-                ),
+                config=Config(s3={"addressing_style": dify_config.S3_ADDRESS_STYLE}),
             )
         # create bucket
         try: