commit 4e6efb895a7bffeff1ee21370f1ee769ce060a14
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2022-04-15T10:13:19Z |
| subject | Fix for more backblaze b2 not working |
commit 4e6efb895a7bffeff1ee21370f1ee769ce060a14
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2022-04-15T10:13:19Z
Fix for more backblaze b2 not working
---
arch_delete_many_aws4.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch_delete_many_aws4.sh b/arch_delete_many_aws4.sh
index 3374ec1..4ad3235 100755
--- a/arch_delete_many_aws4.sh
+++ b/arch_delete_many_aws4.sh
@@ -50,7 +50,7 @@ BUCKET_URL=$ARCH_S3_BUCKET_URL
_DATE=$( date -u +"%Y%m%d" )
_DTIME=$( date -u +"%Y%m%dT%H%M%SZ" )
-_HEADERS="content-md5;host;x-amz-date"
+_HEADERS="content-md5;host;x-amz-content-sha256;x-amz-date"
_MD5=$( openssl dgst -md5 -binary $_TEMP | base64 -w0 )
_SHA=$( sha256sum $_TEMP | cut -d' ' -f1 )
@@ -61,6 +61,7 @@ _C="$_C\n/"
_C="$_C\ndelete="
_C="$_C\ncontent-md5:$_MD5"
_C="$_C\nhost:$BUCKET_URL"
+_C="$_C\nx-amz-content-sha256:$_SHA"
_C="$_C\nx-amz-date:$_DTIME"
_C="$_C\n"
_C="$_C\n$_HEADERS"