mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +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
|
var hadOptionalBlock bool
|
||||||
for c.NextBlock() {
|
for c.NextBlock() {
|
||||||
if httpserver.IfMatcherKeyword(c.Val()) {
|
if httpserver.IfMatcherKeyword(c.Val()) {
|
||||||
|
c.RemainingArgs()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user