From 12a7e87007e27c57daaa010c6adece151a346aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=BChl?= Date: Wed, 28 Apr 2021 15:51:49 +0700 Subject: [PATCH] Do not compress brotli archives --- weed/util/compression.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/compression.go b/weed/util/compression.go index 9d52810cb..759be9bb0 100644 --- a/weed/util/compression.go +++ b/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