diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-24 16:48:04 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-24 16:48:04 -0600 |
commit | 673d3d00f21e0603146889a812f4e913da02ffc0 (patch) | |
tree | eb86649a03e19735bcf7c669f82c86285b3af201 /modules/caddyhttp/fileserver | |
parent | 2acb208e325c16a0f73a81957f9094198e97809c (diff) |
file_server: Fix dumb error check I must have written at 1am
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/caddyfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/caddyfile.go b/modules/caddyhttp/fileserver/caddyfile.go index 67ae4f4..2980436 100644 --- a/modules/caddyhttp/fileserver/caddyfile.go +++ b/modules/caddyhttp/fileserver/caddyfile.go @@ -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": |