diff options
author | Emile <hanemile@protonmail.com> | 2020-03-22 15:51:46 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-22 15:51:46 +0100 |
commit | 3f31893ac900aaf79a33fd87bf7bb5b0081069eb (patch) | |
tree | b43a672a9f3dddabcf33223369bc9e9a5f51bf95 /src/http | |
parent | 0e300e586d46fa8a32856bfe6e519828f8c17fba (diff) |
using the request path as the path to get the dir from
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/http.go | 2 |
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 |