mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +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":
|
||||
fsrv.IndexNames = h.RemainingArgs()
|
||||
if len(fsrv.Hide) == 0 {
|
||||
if len(fsrv.IndexNames) == 0 {
|
||||
return nil, h.ArgErr()
|
||||
}
|
||||
case "root":
|
||||
|
|
Loading…
Reference in a new issue