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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 (