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.

avoid gzipping files without file extensions

Chris Lud3660ffce8ec
diff --git a/weed/operation/compress.go b/weed/operation/compress.go
index 50958fd504..65979d5299 100644
--- a/weed/operation/compress.go
+++ b/weed/operation/compress.go
@@ -38,8 +38,8 @@ func IsGzippable(ext, mtype string, data []byte) bool {
return true
case ".php", ".java", ".go", ".rb", ".c", ".cpp", ".h", ".hpp":
return true
- case ".png", ".jpg", ".jpeg", "":
- return true
+ case ".png", ".jpg", ".jpeg":
+ return false
}
// by mime type