mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-02 22:27:10 +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
|
||||
for c.NextBlock() {
|
||||
if httpserver.IfMatcherKeyword(c.Val()) {
|
||||
c.RemainingArgs()
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue