about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:51:46 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:51:46 +0100
commit3f31893ac900aaf79a33fd87bf7bb5b0081069eb (patch)
treeb43a672a9f3dddabcf33223369bc9e9a5f51bf95
parent0e300e586d46fa8a32856bfe6e519828f8c17fba (diff)
using the request path as the path to get the dir from
-rw-r--r--src/http/http.go2
1 files changed, 1 insertions, 1 deletions
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