Browse Source

Merge pull request #2032 from tobiasmuehl/patch-2

Detect rar archives by mime type
pull/2045/head
Chris Lu 4 years ago
committed by GitHub
parent
commit
9dca75aea8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      weed/util/compression.go

3
weed/util/compression.go

@ -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…
Cancel
Save