flounder

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

commit ce0516c014275f0c0910c8ded46345bb24726f01
parent cbae24f0aacf66aa21c78303bf8f04cf9c05e251
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat,  9 Jan 2021 18:21:44 -0800

fix

Diffstat:
Mgemini.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gemini.go b/gemini.go @@ -82,9 +82,7 @@ func gmiIndex(w *gmi.ResponseWriter, r *gmi.Request) { func gmiPage(w *gmi.ResponseWriter, r *gmi.Request) { logGemini(r) // TODO move into wrapper var userName string - host, _, _ := net.SplitHostPort(r.Host) - custom := domains[host] - log.Println(host, domains, custom) + custom := domains[r.URL.Host] if custom != "" { userName = custom } else {