From 3bdb034e9c766564d866a160104d4932288b7bbb Mon Sep 17 00:00:00 2001 From: Tomasz Raganowicz <7759113+tomekit@users.noreply.github.com> Date: Sun, 5 May 2024 21:12:02 +0200 Subject: [PATCH] Address SHA1 case issue. https://github.com/henrybear327/Proton-API-Bridge/issues/21 and https://github.com/rclone/rclone/issues/7345#issuecomment-1821463100 --- file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file.go b/file.go index d045d81..3c22fa5 100644 --- a/file.go +++ b/file.go @@ -2,6 +2,7 @@ package proton_api_bridge import ( "context" + "strings" "time" "github.com/henrybear327/go-proton-api" @@ -82,7 +83,7 @@ func (protonDrive *ProtonDrive) GetActiveRevisionAttrs(ctx context.Context, link var sha1Hash string if val, ok := revisionXAttrCommon.Digests["SHA1"]; ok { - sha1Hash = val + sha1Hash = strings.ToLower(val) // https://github.com/henrybear327/Proton-API-Bridge/issues/21 and https://github.com/rclone/rclone/issues/7345#issuecomment-1821463100 } else { sha1Hash = "" }