Merge pull request #2032 from tobiasmuehl/patch-2

Detect rar archives by mime type
This commit is contained in:
Chris Lu 2021-04-28 10:31:19 -07:00 committed by GitHub
commit 9dca75aea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,6 +147,9 @@ func IsZstdContent(data []byte) bool {
if strings.HasSuffix(mtype, "script") { if strings.HasSuffix(mtype, "script") {
return true, true return true, true
} }
if strings.HasSuffix(mtype, "vnd.rar) {
return false, true
}
} }
if strings.HasPrefix(mtype, "audio/") { if strings.HasPrefix(mtype, "audio/") {