From 81430e4aff3f65b124472267a16738ddd276e4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= Date: Fri, 24 May 2019 17:59:06 +0200 Subject: [PATCH] gzip: Add .wasm (WebAssembly files) (#2624) --- caddyhttp/gzip/requestfilter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/gzip/requestfilter.go b/caddyhttp/gzip/requestfilter.go index 696c051d..ee37776b 100644 --- a/caddyhttp/gzip/requestfilter.go +++ b/caddyhttp/gzip/requestfilter.go @@ -30,7 +30,7 @@ type RequestFilter interface { // defaultExtensions is the list of default extensions for which to enable gzipping. var defaultExtensions = []string{"", ".txt", ".htm", ".html", ".css", ".php", ".js", ".json", - ".md", ".mdown", ".xml", ".svg", ".go", ".cgi", ".py", ".pl", ".aspx", ".asp", ".m3u", ".m3u8"} + ".md", ".mdown", ".xml", ".svg", ".go", ".cgi", ".py", ".pl", ".aspx", ".asp", ".m3u", ".m3u8", ".wasm"} // DefaultExtFilter creates an ExtFilter with default extensions. func DefaultExtFilter() ExtFilter {