From e211491407d076a4a347fa3f0756a23888c0984d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 22 Mar 2020 23:13:08 -0600 Subject: httpcaddyfile: Fix little typo (Next -> NextArg) --- caddyconfig/httpcaddyfile/builtins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'caddyconfig') 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() -- cgit v1.2.3