1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-07 16:17:23 +01:00

Add Configuration to Handle AWS SDK Checksum Changes for Third-Party S3-Compatible Services (#2490)

fix: MissingContentLength error in boto3 version 1.36.1 and up
This commit is contained in:
MrWinux
2025-06-20 12:38:54 +02:00
committed by GitHub
parent b86c5a10d5
commit ae8da06571

View File

@@ -257,6 +257,8 @@ def get_duplicity_env_vars(env):
if get_target_type(config) == 's3':
env["AWS_ACCESS_KEY_ID"] = config["target_user"]
env["AWS_SECRET_ACCESS_KEY"] = config["target_pass"]
env["AWS_REQUEST_CHECKSUM_CALCULATION"] = "WHEN_REQUIRED"
env["AWS_RESPONSE_CHECKSUM_VALIDATION"] = "WHEN_REQUIRED"
return env