diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index c16840228..121c0d2bb 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -480,7 +480,7 @@ func (f *WebDavFile) Read(p []byte) (readSize int, err error) { f.reader = nil } if f.reader == nil { - chunkViews := filer.ViewFromVisibleIntervals(f.entryViewCache, 0, math.MaxInt32) + chunkViews := filer.ViewFromVisibleIntervals(f.entryViewCache, 0, math.MaxInt64) f.reader = filer.NewChunkReaderAtFromClient(f.fs, chunkViews, f.fs.chunkCache, fileSize) }