mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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
|
return true
|
||||||
case ".php", ".java", ".go", ".rb", ".c", ".cpp", ".h", ".hpp":
|
case ".php", ".java", ".go", ".rb", ".c", ".cpp", ".h", ".hpp":
|
||||||
return true
|
return true
|
||||||
case ".png", ".jpg", ".jpeg", "":
|
case ".png", ".jpg", ".jpeg":
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// by mime type
|
// by mime type
|
||||||
|
|
Loading…
Reference in a new issue