From 854007bc98acb696a0afa9faf3ca04a38f35d44f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 16 Sep 2020 00:37:57 -0700 Subject: [PATCH] minor --- weed/server/webdav_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index 93c1f41d2..c16840228 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -552,9 +552,9 @@ func (f *WebDavFile) Seek(offset int64, whence int) (int64, error) { var err error switch whence { - case 0: + case io.SeekStart: f.off = 0 - case 2: + case io.SeekEnd: if fi, err := f.fs.stat(ctx, f.name); err != nil { return 0, err } else {