From 5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf Mon Sep 17 00:00:00 2001 From: lost+skunk Date: Tue, 3 Sep 2024 16:14:19 +0300 Subject: фикс небольшого обосрамса MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/router.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/router.go b/app/router.go index cc58f93..2625374 100644 --- a/app/router.go +++ b/app/router.go @@ -13,9 +13,10 @@ var Host, Path string func Router() { parsepath := func(path string) map[int]string { - path = "/" if l := len(CFG.URI); len(path) > l { path = path[l-1:] + } else { + path = "/" } parsedpath := make(map[int]string) -- cgit v1.2.3