Merge pull request #928 from abiosoft/master

discard remaining args for if block in redir.
This commit is contained in:
Abiola Ibrahim 2016-07-08 19:52:19 +01:00 committed by GitHub
commit cf03c9a6c8

View file

@ -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
}