file_server: Fix dumb error check I must have written at 1am

This commit is contained in:
Matthew Holt 2020-03-24 16:48:04 -06:00
parent 2acb208e32
commit 673d3d00f2
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -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":