mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
plugin/header: Remove deprecated syntax (#7436)
Signed-off-by: Qasim Sarfraz <qasimsarfraz@microsoft.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user