flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 521dc799fb2e4b2080eb37f44115a2f2c6536a18
parent ae1e33aa0df0fd919af8cf9ea1cebcd708900c9e
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed,  6 Jan 2021 23:45:17 -0800

Fix slash proxy issue

Diffstat:
Mproxy.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy.go b/proxy.go @@ -27,7 +27,7 @@ func proxyGemini(w http.ResponseWriter, r *http.Request) { 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,