Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
file_server: Fix dumb error check I must have written at 1am
Matthew Holt committed
Mar 24, 2020 at 16:48 UTC
673d3d00f21e0603146889a812f4e913da02ffc0
1 file changed
+1
-1
modules/caddyhttp/fileserver/caddyfile.go
+1
-1
@@ -63,7 +63,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
63
}
64
case "index":
65
fsrv.IndexNames = h.RemainingArgs()
66
- if len(fsrv.Hide) == 0 {
66
+ if len(fsrv.IndexNames) == 0 {
67
return nil, h.ArgErr()
68
}
69
case "root":