diff --git a/backend/drive/drive.go b/backend/drive/drive.go index 30e930f38..271b0b046 100644 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -3965,7 +3965,7 @@ func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) { return "", hash.ErrUnsupported } func (o *baseObject) Hash(ctx context.Context, t hash.Type) (string, error) { - if t != hash.MD5 { + if t != hash.MD5 && t != hash.SHA1 && t != hash.SHA256 { return "", hash.ErrUnsupported } return "", nil