Browse Source

Do not compress brotli archives

pull/2031/head
Tobias Mühl 4 years ago
committed by GitHub
parent
commit
12a7e87007
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