From 040768383bbe577cce255fd63b4e0bb24e9dc501 Mon Sep 17 00:00:00 2001 From: Oliver Heyme Date: Fri, 17 Aug 2018 19:05:04 +0200 Subject: [PATCH] jottacloud: fix MD5 error check --- backend/jottacloud/jottacloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go index 626327dbb..4e206f724 100644 --- a/backend/jottacloud/jottacloud.go +++ b/backend/jottacloud/jottacloud.go @@ -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) }