Commit 48abb411 authored by Abiola Ibrahim's avatar Abiola Ibrahim

discard remaining args in if block

parent 7eb4bb8e
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment