jottacloud: fix MD5 error check
This commit is contained in:
parent
6390dec7db
commit
040768383b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue