summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-24 16:48:04 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-24 16:48:04 -0600
commit673d3d00f21e0603146889a812f4e913da02ffc0 (patch)
treeeb86649a03e19735bcf7c669f82c86285b3af201 /modules/caddyhttp/fileserver
parent2acb208e325c16a0f73a81957f9094198e97809c (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.go2
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":