0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-03-25 02:33:02 -05:00

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
}