@marcel91200 / caddy Mirror · read-only / commits / e0aaefab
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 22:00 UTC

encode: Add `application/wasm*` to the default content types (#5869)

Christoph committed Oct 10, 2023 at 23:18 UTC e0aaefab80d75293783a5551b094cf57b49da8d5
2 files changed +3
caddytest/integration/caddyfile_adapt/encode_options.txt
+2
@@ -11,6 +11,7 @@ encode gzip zstd {
11 header Content-Type application/xhtml+xml*
12 header Content-Type application/atom+xml*
13 header Content-Type application/rss+xml*
14 + header Content-Type application/wasm*
15 header Content-Type image/svg+xml*
16 }
17 }
@@ -47,6 +48,7 @@ encode {
48 "application/xhtml+xml*",
49 "application/atom+xml*",
50 "application/rss+xml*",
51 + "application/wasm*",
52 "image/svg+xml*"
53 ]
54 },
modules/caddyhttp/encode/encode.go
+1
@@ -93,6 +93,7 @@ func (enc *Encode) Provision(ctx caddy.Context) error {
93 "application/xhtml+xml*",
94 "application/atom+xml*",
95 "application/rss+xml*",
96 + "application/wasm*",
97 "image/svg+xml*",
98 },
99 },