plugin/header: Remove deprecated syntax (#7436)

Signed-off-by: Qasim Sarfraz <qasimsarfraz@microsoft.com>
This commit is contained in:
Qasim Sarfraz
2025-08-09 00:38:41 +02:00
committed by GitHub
parent 52639bc66c
commit 712a5050bd
3 changed files with 8 additions and 22 deletions

View File

@@ -38,14 +38,6 @@ func parse(c *caddy.Controller) ([]Rule, []Rule, error) {
var action string
switch selector {
case "set", "clear":
log.Warningf("The selector for header rule in line %d isn't explicit defined. "+
"Assume rule applies for selector 'response'. This syntax is deprecated. "+
"In future versions of CoreDNS the selector must be explicit defined.",
c.Line())
action = selector
selector = "response"
case "query", "response":
if c.NextArg() {
action = c.Val()