Fixed for backblaze b2 not working

This commit is contained in:
2022-03-30 15:05:37 +09:00
parent f536681e9a
commit 2649d1f034
4 changed files with 8 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ BUCKET_URL=$ARCH_S3_BUCKET_URL
_DATE=$( date -u +"%Y%m%d" )
_DTIME=$( date -u +"%Y%m%dT%H%M%SZ" )
_HEADERS="host;x-amz-date"
_HEADERS="host;x-amz-content-sha256;x-amz-date"
_SHA=$( echo -n "" | sha256sum | cut -d' ' -f1 )
# Canon Request
@@ -46,6 +46,7 @@ _C="DELETE"
_C="$_C\n/$_PATH"
_C="$_C\n" # no query strings here
_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"