Do not compress brotli archives

This commit is contained in:
Tobias Mühl 2021-04-28 15:51:49 +07:00 committed by GitHub
parent ccbe02218a
commit 12a7e87007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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