diff options
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r-- | caddyconfig/httpcaddyfile/builtins.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go index 2c5a2d7..9be9fb1 100644 --- a/caddyconfig/httpcaddyfile/builtins.go +++ b/caddyconfig/httpcaddyfile/builtins.go @@ -317,7 +317,7 @@ func parseTLS(h Helper) ([]ConfigValue, error) { func parseRoot(h Helper) (caddyhttp.MiddlewareHandler, error) { var root string for h.Next() { - if !h.Next() { + if !h.NextArg() { return nil, h.ArgErr() } root = h.Val() |