httpcaddyfile: Fix little typo (Next -> NextArg)

This commit is contained in:
Matthew Holt
2020-03-22 23:13:08 -06:00
parent 6e2fabb2a4
commit e211491407
+1 -1
View File
@@ -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()