mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 00:37:57 +08:00
revert temporary changes that disabled compression
fix https://github.com/chrislusf/seaweedfs/issues/2362
This commit is contained in:
@@ -75,7 +75,6 @@ func ParseUpload(r *http.Request, sizeLimit int64, bytesBuffer *bytes.Buffer) (p
|
||||
if mimeType == "application/octet-stream" {
|
||||
mimeType = ""
|
||||
}
|
||||
if false {
|
||||
if shouldBeCompressed, iAmSure := util.IsCompressableFileType(ext, mimeType); mimeType == "" && !iAmSure || shouldBeCompressed && iAmSure {
|
||||
// println("ext", ext, "iAmSure", iAmSure, "shouldBeCompressed", shouldBeCompressed, "mimeType", pu.MimeType)
|
||||
if compressedData, err := util.GzipData(pu.Data); err == nil {
|
||||
@@ -87,7 +86,6 @@ func ParseUpload(r *http.Request, sizeLimit int64, bytesBuffer *bytes.Buffer) (p
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// md5
|
||||
h := md5.New()
|
||||
|
Reference in New Issue
Block a user