diff --git a/src/pkg/http/fs.go b/src/pkg/http/fs.go index 26d9311370d..2c7c636fda0 100644 --- a/src/pkg/http/fs.go +++ b/src/pkg/http/fs.go @@ -149,7 +149,7 @@ func serveFile(w ResponseWriter, r *Request, fs FileSystem, name string, redirec // use contents of index.html for directory, if present if d.IsDirectory() { - index := name + filepath.FromSlash(indexPage) + index := name + indexPage ff, err := fs.Open(index) if err == nil { defer ff.Close()