mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-02 09:43:12 +08:00
Merge pull request #928 from abiosoft/master
discard remaining args for if block in redir.
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