From e27f6d4006e3ce626b291ebc9f18601e115007a0 Mon Sep 17 00:00:00 2001 From: 兔子 Date: Wed, 4 Sep 2019 17:17:41 +0800 Subject: [PATCH] fix path error at http --- vtqe/tools/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtqe/tools/http.go b/vtqe/tools/http.go index 64c64ad..f2979f2 100644 --- a/vtqe/tools/http.go +++ b/vtqe/tools/http.go @@ -169,7 +169,7 @@ func ReadFolder(w http.ResponseWriter, r *http.Request, fullpath string, isroot } w.Write([]byte("
\n"))
 	if !isroot {
-		w.Write([]byte(fmt.Sprintf("

%s %s

\n", "..", "..", "上层文件夹"))) + w.Write([]byte(fmt.Sprintf("

%s %s

\n", r.URL.Path+"/..", "..", "上层文件夹"))) } if r.URL.Path == "/" { r.URL.Path = ""