discard remaining args in if block

This commit is contained in:
Abiola Ibrahim 2016-07-08 19:39:31 +01:00
parent 7eb4bb8e1c
commit 48abb41135

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
}