From 4e6efb895a7bffeff1ee21370f1ee769ce060a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Fri, 15 Apr 2022 19:13:19 +0900 Subject: [PATCH] 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"