mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-14 14:56:27 +03:00
file_server: Fix dumb error check I must have written at 1am
This commit is contained in:
parent
2acb208e32
commit
673d3d00f2
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
|
||||||
}
|
}
|
||||||
case "index":
|
case "index":
|
||||||
fsrv.IndexNames = h.RemainingArgs()
|
fsrv.IndexNames = h.RemainingArgs()
|
||||||
if len(fsrv.Hide) == 0 {
|
if len(fsrv.IndexNames) == 0 {
|
||||||
return nil, h.ArgErr()
|
return nil, h.ArgErr()
|
||||||
}
|
}
|
||||||
case "root":
|
case "root":
|
||||||
|
|
Loading…
Reference in a new issue