Skip to content

Commit

Permalink
Merge pull request #27 from tomekit/master
Browse files Browse the repository at this point in the history
Address SHA1 case issue
  • Loading branch information
henrybear327 authored Sep 22, 2024
2 parents cd25c03 + 3bdb034 commit 2172bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package proton_api_bridge

import (
"context"
"strings"
"time"

"github.com/henrybear327/go-proton-api"
Expand Down Expand Up @@ -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 = ""
}
Expand Down

0 comments on commit 2172bb8

Please sign in to comment.