diff --git a/enhanced-file-server.go b/enhanced-file-server.go index d8fa291..dfce027 100644 --- a/enhanced-file-server.go +++ b/enhanced-file-server.go @@ -98,8 +98,6 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File) { } - sort.Slice(dirs, func(i, j int) bool { return dirs[i].Name() < dirs[j].Name() }) - w.Header().Set("Content-Type", "text/html; charset=utf-8") fmt.Fprintf(w, "%s\n", tableheader)