mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-20 22:12:33 -04:00
discard remaining args in if block
This commit is contained in:
@@ -72,6 +72,7 @@ func redirParse(c *caddy.Controller) ([]Rule, error) {
|
||||
var hadOptionalBlock bool
|
||||
for c.NextBlock() {
|
||||
if httpserver.IfMatcherKeyword(c.Val()) {
|
||||
c.RemainingArgs()
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user