mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-28 04:45:56 +03:00
httpcaddyfile: Fix little typo (Next -> NextArg)
This commit is contained in:
parent
6e2fabb2a4
commit
e211491407
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue