diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-04-28 10:31:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-28 10:31:19 -0700 |
| commit | 9dca75aea888780ecc8f36a3e9ca36656d57cd7a (patch) | |
| tree | 6e3fa3e76ecf3a7e09c7149e518b272047791703 /weed/util/compression.go | |
| parent | 5198c7a7d5361e95b9bedcf1bc9a02d4e771ea5c (diff) | |
| parent | a8864e2abdc6141a6681da0590c505e9ae7ffa5d (diff) | |
| download | seaweedfs-9dca75aea888780ecc8f36a3e9ca36656d57cd7a.tar.xz seaweedfs-9dca75aea888780ecc8f36a3e9ca36656d57cd7a.zip | |
Merge pull request #2032 from tobiasmuehl/patch-2
Detect rar archives by mime type
Diffstat (limited to 'weed/util/compression.go')
| -rw-r--r-- | weed/util/compression.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/util/compression.go b/weed/util/compression.go index 759be9bb0..5ba8c4930 100644 --- a/weed/util/compression.go +++ b/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/") { |
