Merge pull request #2031 from tobiasmuehl/patch-1

Do not compress brotli archives
This commit is contained in:
Chris Lu 2021-04-28 10:31:00 -07:00 committed by GitHub
commit 5198c7a7d5
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