From 5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf Mon Sep 17 00:00:00 2001 From: lost+skunk Date: Tue, 3 Sep 2024 16:14:19 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BD=D0=B5=D0=B1?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D1=88=D0=BE=D0=B3=D0=BE=20=D0=BE=D0=B1=D0=BE?= =?UTF-8?q?=D1=81=D1=80=D0=B0=D0=BC=D1=81=D0=B0?= 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(-) 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)