mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #2032 from tobiasmuehl/patch-2
Detect rar archives by mime type
This commit is contained in:
commit
9dca75aea8
|
@ -147,6 +147,9 @@ func IsZstdContent(data []byte) bool {
|
|||
if strings.HasSuffix(mtype, "script") {
|
||||
return true, true
|
||||
}
|
||||
if strings.HasSuffix(mtype, "vnd.rar) {
|
||||
return false, true
|
||||
}
|
||||
}
|
||||
|
||||
if strings.HasPrefix(mtype, "audio/") {
|
||||
|
|
Loading…
Reference in a new issue