From 3f31893ac900aaf79a33fd87bf7bb5b0081069eb Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 22 Mar 2020 15:51:46 +0100 Subject: using the request path as the path to get the dir from --- src/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/http.go b/src/http/http.go index ee5434e..2402d05 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -167,7 +167,7 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { content["Breadcrumbs"] = breadcrumbsList // get all files in the request dir - files, err := ioutil.ReadDir(requestURI) + files, err := ioutil.ReadDir(requestPath) if err != nil { logrus.Warn(err) return -- cgit 1.4.1