Browse Source

avoid gzipping files without file extensions

fix https://github.com/chrislusf/seaweedfs/issues/804
pull/809/head
Chris Lu 6 years ago
parent
commit
d3660ffce8
  1. 4
      weed/operation/compress.go

4
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

Loading…
Cancel
Save