Browse Source

minor

pull/1475/head
Chris Lu 4 years ago
parent
commit
854007bc98
  1. 4
      weed/server/webdav_server.go

4
weed/server/webdav_server.go

@ -552,9 +552,9 @@ func (f *WebDavFile) Seek(offset int64, whence int) (int64, error) {
var err error var err error
switch whence { switch whence {
case 0:
case io.SeekStart:
f.off = 0 f.off = 0
case 2:
case io.SeekEnd:
if fi, err := f.fs.stat(ctx, f.name); err != nil { if fi, err := f.fs.stat(ctx, f.name); err != nil {
return 0, err return 0, err
} else { } else {

Loading…
Cancel
Save