1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-03-30 23:37:05 +00:00

fix: MissingContentLength error in boto3 version 1.36.1 and up

This commit is contained in:
MrWinux 2025-03-24 10:10:41 +01:00 committed by GitHub
parent 3efd4257b5
commit e67abb3ae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,6 +258,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