all repos — flounder @ ce0516c014275f0c0910c8ded46345bb24726f01

A small site builder for the Gemini protocol

fix
alex wennerberg alex@alexwennerberg.com
Sat, 09 Jan 2021 18:21:44 -0800
commit

ce0516c014275f0c0910c8ded46345bb24726f01

parent

cbae24f0aacf66aa21c78303bf8f04cf9c05e251

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

jump to
M gemini.gogemini.go

@@ -82,9 +82,7 @@

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 {