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
parent
commit
5198c7a7d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/util/compression.go

2
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

Loading…
Cancel
Save