Sfoglia il codice sorgente

refac/fix: s3 checksum validation

Timothy Jaeryang Baek 1 mese fa
parent
commit
9726c0b7ee
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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