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
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -317,7 +317,7 @@ func parseTLS(h Helper) ([]ConfigValue, error) {
func parseRoot(h Helper) (caddyhttp.MiddlewareHandler, error) { func parseRoot(h Helper) (caddyhttp.MiddlewareHandler, error) {
var root string var root string
for h.Next() { for h.Next() {
if !h.Next() { if !h.NextArg() {
return nil, h.ArgErr() return nil, h.ArgErr()
} }
root = h.Val() root = h.Val()