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)