Fix slash proxy issue
alex wennerberg alex@alexwennerberg.com
Wed, 06 Jan 2021 23:45:17 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
proxy.go
→
proxy.go
@@ -27,7 +27,7 @@ req.Host = path[1]
if len(path) > 2 { req.URL, err = url.Parse(fmt.Sprintf("gemini://%s/%s", path[1], path[2])) } else { - req.URL, err = url.Parse(fmt.Sprintf("gemini://%s", path[1])) + req.URL, err = url.Parse(fmt.Sprintf("gemini://%s/", path[1])) } client := gemini.Client{ Timeout: 60 * time.Second,