mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
avoid gzipping files without file extensions
fix https://github.com/chrislusf/seaweedfs/issues/804
This commit is contained in:
parent
069c641d7c
commit
d3660ffce8
@ -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…
Reference in New Issue
Block a user