mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-20 04:29:03 +01:00
Merge pull request #928 from abiosoft/master
discard remaining args for if block in redir.
This commit is contained in:
commit
cf03c9a6c8
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue