config: Fix server.redirects.fromRe being ignored unless server.redirects.from is also set
This commit is contained in:
parent
503dcf6252
commit
c1f4228d61
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ func (c *CacheBuster) CompileConfig(logger loggers.Logger) error {
|
|||
}
|
||||
|
||||
func (r Redirect) IsZero() bool {
|
||||
return r.From == ""
|
||||
return r.From == "" && r.FromRe == ""
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Reference in a new issue