From 9f2eea189bdad9af58e7e3299435b707043a390d Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 Aug 2018 13:35:54 +0000 Subject: [PATCH] html fix --- enhanced-file-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enhanced-file-server.go b/enhanced-file-server.go index c086606..374b16f 100644 --- a/enhanced-file-server.go +++ b/enhanced-file-server.go @@ -129,7 +129,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f File) { // part of the URL path, and not indicate the start of a query // string or fragment. url := url.URL{Path: name} - fmt.Fprintf(w, "%d%s", url.String(), htmlReplacer.Replace(name), d.Size(), d.ModTime().String()) + fmt.Fprintf(w, "%s%d%s", url.String(), htmlReplacer.Replace(name), d.Size(), d.ModTime().String()) // fmt.Fprintf(w, "%s\n", url.String(), htmlReplacer.Replace(name)) }