ソースを参照

refac/fix: s3 checksum validation

Timothy Jaeryang Baek 1 ヶ月 前
コミット
9726c0b7ee
1 ファイル変更3 行追加0 行削除
  1. 3 0
      backend/open_webui/storage/provider.py

+ 3 - 0
backend/open_webui/storage/provider.py

@@ -112,6 +112,9 @@ class S3StorageProvider(StorageProvider):
                 "use_accelerate_endpoint": S3_USE_ACCELERATE_ENDPOINT,
                 "addressing_style": S3_ADDRESSING_STYLE,
             },
+            # KIT change - see https://github.com/boto/boto3/issues/4400#issuecomment-2600742103∆
+            request_checksum_calculation="when_required",
+            response_checksum_validation="when_required",
         )
 
         # If access key and secret are provided, use them for authentication