From f2250389085a99d12a992537db4fb1dd95d3f70a Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Sun, 28 Apr 2024 00:48:16 +0200 Subject: [PATCH] feat: better url handling --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index cd0b5ae..44079af 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "leech/config" "leech/route" "net/http" - "net/url" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/filesystem" @@ -29,7 +28,7 @@ func main() { })) for dirName, dirToServe := range config.Config.ServeDirs { - app.Static("/serve/"+url.QueryEscape(dirName), dirToServe) + app.Static("/serve/"+dirName, dirToServe) } app.Use("/", route.HandleList)