mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 10:25:46 +03:00
gzip: Fix to allow wildcard extension
This commit is contained in:
parent
71c4fdbc85
commit
68c416e414
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func gzipParse(c *Controller) ([]gzip.Config, error) {
|
||||||
return configs, c.ArgErr()
|
return configs, c.ArgErr()
|
||||||
}
|
}
|
||||||
for _, e := range exts {
|
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)
|
return configs, fmt.Errorf(`gzip: invalid extension "%v" (must start with dot)`, e)
|
||||||
}
|
}
|
||||||
extFilter.Exts.Add(e)
|
extFilter.Exts.Add(e)
|
||||||
|
|
Loading…
Reference in a new issue