flounder

A simple gemini site builder
git clone git://git.alexwennerberg.com/flounder
Log | Files | Refs | README | LICENSE

commit 03f5abe6f484ba8e0bb9ae0aba44104e8f2ad86d
parent 49cd54f0be605b3371b0d7ab1557f2805df276aa
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri, 28 Oct 2022 16:07:45 -0700

I dont know why i wrote this but i think its the source of a bug

caddy goes down occasionally

I think this will allow anyone to validate a tls cert, bringing down my
server

I dont know why i added it

Diffstat:
Mhttp.go | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/http.go b/http.go @@ -838,10 +838,6 @@ func checkDomainHandler(w http.ResponseWriter, r *http.Request) { w.Write([]byte(domain)) return } - if domain == c.Host || strings.HasSuffix(domain, "."+c.Host) { - w.Write([]byte(domain)) - return - } http.Error(w, "Not Found", 404) }