config: Fix server.redirects.fromRe being ignored unless server.redirects.from is also set

This commit is contained in:
Peter Weston
2025-02-14 09:21:19 +00:00
committed by GitHub
parent 503dcf6252
commit c1f4228d61

View File

@@ -450,7 +450,7 @@ func (c *CacheBuster) CompileConfig(logger loggers.Logger) error {
} }
func (r Redirect) IsZero() bool { func (r Redirect) IsZero() bool {
return r.From == "" return r.From == "" && r.FromRe == ""
} }
const ( const (