Browse Source

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

master
Matthew Holt 5 years ago
parent
commit
673d3d00f2
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      modules/caddyhttp/fileserver/caddyfile.go

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

Loading…
Cancel
Save