From e2a8cdfc4876c0b2a4ca0210a4f142b383b386eb Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 7 Dec 2019 07:56:51 -0800 Subject: [PATCH] webdav: fix writing file fix https://github.com/chrislusf/seaweedfs/issues/1114 --- weed/server/webdav_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index 686bbec6a..b367d78b3 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -444,7 +444,7 @@ func (f *WebDavFile) Write(buf []byte) (int, error) { return nil }) - if err != nil { + if err == nil { glog.V(3).Infof("WebDavFileSystem.Write %v: written [%d,%d)", f.name, f.off, f.off+int64(len(buf))) f.off += int64(len(buf)) }