summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.go b/server.go
index 3a90a87..1d48e7e 100644
--- a/server.go
+++ b/server.go
@@ -47,8 +47,9 @@ func newServer(opts *ServeOptions) (srv *server, err error) {
}
var httpdOpts = libhttp.ServerOptions{
- Memfs: opts.Mfs,
- Address: opts.Address,
+ Memfs: opts.Mfs,
+ Address: opts.Address,
+ EnableIndexHTML: opts.EnableIndexHTML,
}
srv.http, err = libhttp.NewServer(httpdOpts)