From e54dfa49c3d898ffc9409e4f3b72c1ea4fc9ad48 Mon Sep 17 00:00:00 2001 From: magikstm Date: Fri, 8 Jun 2018 01:38:55 -0400 Subject: [PATCH] gzip: Add .m3u and .m3u8 (HLS playlist files) (#2182) --- 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 802f6e9b..696c051d 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"} + ".md", ".mdown", ".xml", ".svg", ".go", ".cgi", ".py", ".pl", ".aspx", ".asp", ".m3u", ".m3u8"} // DefaultExtFilter creates an ExtFilter with default extensions. func DefaultExtFilter() ExtFilter {