avoid gzipping files without file extensions

fix https://github.com/chrislusf/seaweedfs/issues/804
This commit is contained in:
Chris Lu 2018-12-27 12:17:05 -08:00
parent 069c641d7c
commit d3660ffce8

View File

@ -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