From 68c416e41430ed972784fc26db7c7a4e29f9a827 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 5 Jul 2015 23:23:21 -0600 Subject: [PATCH] gzip: Fix to allow wildcard extension --- config/setup/gzip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/setup/gzip.go b/config/setup/gzip.go index 933ca592..6372eacb 100644 --- a/config/setup/gzip.go +++ b/config/setup/gzip.go @@ -43,7 +43,7 @@ func gzipParse(c *Controller) ([]gzip.Config, error) { return configs, c.ArgErr() } for _, e := range exts { - if !strings.HasPrefix(e, ".") { + if !strings.HasPrefix(e, ".") && e != "*" { return configs, fmt.Errorf(`gzip: invalid extension "%v" (must start with dot)`, e) } extFilter.Exts.Add(e)