all repos — flounder @ 521dc799fb2e4b2080eb37f44115a2f2c6536a18

A small site builder for the Gemini protocol

Fix slash proxy issue
alex wennerberg alex@alexwennerberg.com
Wed, 06 Jan 2021 23:45:17 -0800
commit

521dc799fb2e4b2080eb37f44115a2f2c6536a18

parent

ae1e33aa0df0fd919af8cf9ea1cebcd708900c9e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M proxy.goproxy.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,