aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest/integration
diff options
context:
space:
mode:
authorKévin Dunglas <[email protected]>2024-12-11 00:48:30 +0100
committerGitHub <[email protected]>2024-12-10 16:48:30 -0700
commitd0e209e1da6cd6d7d61e83b851f2913ee31454f8 (patch)
tree26edec5b50e8c391361926379fccee06503dfe48 /caddytest/integration
parent290cfea08f2486fb86dbc11eec96d79751180eda (diff)
downloadcaddy-d0e209e1da6cd6d7d61e83b851f2913ee31454f8.tar.gz
caddy-d0e209e1da6cd6d7d61e83b851f2913ee31454f8.zip
encode: good defaults (#6737)
* feat: good default for encode * fix tests and add a new one
Diffstat (limited to 'caddytest/integration')
-rw-r--r--caddytest/integration/caddyfile_adapt/encode_options.caddyfiletest13
1 files changed, 13 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/encode_options.caddyfiletest b/caddytest/integration/caddyfile_adapt/encode_options.caddyfiletest
index 181bc2264..ea9038ef8 100644
--- a/caddytest/integration/caddyfile_adapt/encode_options.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/encode_options.caddyfiletest
@@ -21,6 +21,8 @@ encode {
zstd
gzip 5
}
+
+encode
----------
{
"apps": {
@@ -76,6 +78,17 @@ encode {
"zstd",
"gzip"
]
+ },
+ {
+ "encodings": {
+ "gzip": {},
+ "zstd": {}
+ },
+ "handler": "encode",
+ "prefer": [
+ "zstd",
+ "gzip"
+ ]
}
]
}