Browse Source
Merge pull request #2031 from tobiasmuehl/patch-1
Do not compress brotli archives
pull/2045/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/util/compression.go
|
|
@ -126,7 +126,7 @@ func IsZstdContent(data []byte) bool { |
|
|
|
|
|
|
|
// by file name extension
|
|
|
|
switch ext { |
|
|
|
case ".zip", ".rar", ".gz", ".bz2", ".xz", ".zst": |
|
|
|
case ".zip", ".rar", ".gz", ".bz2", ".xz", ".zst", ".br": |
|
|
|
return false, true |
|
|
|
case ".pdf", ".txt", ".html", ".htm", ".css", ".js", ".json": |
|
|
|
return true, true |
|
|
|