Commit cf03c9a6 authored by Abiola Ibrahim's avatar Abiola Ibrahim Committed by GitHub

Merge pull request #928 from abiosoft/master

discard remaining args for if block in redir.
parents 7eb4bb8e 48abb411
...@@ -72,6 +72,7 @@ func redirParse(c *caddy.Controller) ([]Rule, error) { ...@@ -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
} }
......
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