Commit 68c416e4 authored by Matthew Holt's avatar Matthew Holt

gzip: Fix to allow wildcard extension

parent 71c4fdbc
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment