Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

minor

chrislu58dd8803224d
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 92681d8e84..00dac26f74 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -331,7 +331,9 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is
for {
m, err = reader.Read(buf)
- fn(buf[:m])
+ if m > 0 {
+ fn(buf[:m])
+ }
if err == io.EOF {
return false, nil
}