Browse Source
file_server: Fix dumb error check I must have written at 1am
master
Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
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": |
|
|
|