diff --git a/src/pkg/http/fs.go b/src/pkg/http/fs.go index 4a514beb0b8..bd5ff8bc68c 100644 --- a/src/pkg/http/fs.go +++ b/src/pkg/http/fs.go @@ -78,6 +78,7 @@ func isText(b []byte) bool { } func dirList(w ResponseWriter, f File) { + w.Header().Set("Content-Type", "text/html; charset=utf-8") fmt.Fprintf(w, "
\n")
 	for {
 		dirs, err := f.Readdir(100)