mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
jottacloud: fix MD5 error check
This commit is contained in:
parent
6390dec7db
commit
040768383b
@ -763,7 +763,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio
|
||||
}
|
||||
|
||||
md5, err := src.Hash(hash.MD5)
|
||||
if err != nil {
|
||||
if err == nil && md5 != "" {
|
||||
opts.ExtraHeaders["JMd5"] = md5
|
||||
opts.Parameters.Set("cphash", md5)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user