1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-02 15:16:51 +02:00

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