summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-22 23:13:08 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-22 23:13:08 -0600
commite211491407d076a4a347fa3f0756a23888c0984d (patch)
tree75c6d2ca7753dba6f754869596a6f9457defd424 /caddyconfig/httpcaddyfile
parent6e2fabb2a46812dee42842c13439e1a0238aa40b (diff)
httpcaddyfile: Fix little typo (Next -> NextArg)
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r--caddyconfig/httpcaddyfile/builtins.go2
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()