summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorLevente Kurusa <lkurusa@kernelstuff.org>2023-05-24 19:54:47 +0200
committerGitHub <noreply@github.com>2023-05-24 19:54:47 +0200
commit1174715f9904b7e7b95c16ff34da6e9094c3003d (patch)
tree85b04cba416489f7080c493c41fb82aaaa39a47c /cli
parente56695daa89b7c53a88a691f35ee9a498caffbdf (diff)
feat(ext/http): Brotli Compression (#19216)
Add Brotli streaming compression to HTTP
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/unit/serve_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts
index d3faac78d..f9f05fd74 100644
--- a/cli/tests/unit/serve_test.ts
+++ b/cli/tests/unit/serve_test.ts
@@ -2089,6 +2089,13 @@ const compressionTestCases = [
expect: "gzip",
},
{
+ name: "CompressibleType3",
+ length: 1024,
+ in: { "Accept-Encoding": "br" },
+ out: { "Content-Type": "text/plain" },
+ expect: "br",
+ },
+ {
name: "UncompressibleRange",
length: 1024,
in: { "Accept-Encoding": "gzip" },