mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 17:56:34 +08:00
discard remaining args in if block
This commit is contained in:
parent
7eb4bb8e1c
commit
48abb41135
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user