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

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