fix keepttl parsing (#6250)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2023-08-09 08:32:50 -04:00
committed by GitHub
parent 932049c6e0
commit 6c8581445e

View File

@@ -241,6 +241,7 @@ func cacheParse(c *caddy.Controller) (*Cache, error) {
return nil, fmt.Errorf("cache type for disable must be %q or %q", Success, Denial)
}
case "keepttl":
args := c.RemainingArgs()
if len(args) != 0 {
return nil, c.ArgErr()
}