From b0fb00d7fd8ddfacc1a1997f946d5cd105e2a093 Mon Sep 17 00:00:00 2001 From: arzumify Date: Sun, 3 Nov 2024 12:09:05 +0000 Subject: [PATCH] This directory listing isn't very good, is it... Signed-off-by: arzumify --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8b0820d..aebb7b6 100644 --- a/main.go +++ b/main.go @@ -288,7 +288,7 @@ func listDirectory(w http.ResponseWriter, r *http.Request, root string) { return } for _, entry := range entries { - _, err = w.Write([]byte("
  • " + entry.Name() + "
  • ")) + _, err = w.Write([]byte("
  • " + entry.Name() + "
  • ")) if err != nil { serverError(w, 500) slog.Error("Error writing directory listing: " + err.Error())