flounder

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

commit aa3a622afdb7e9d30b464b78cc40d0aa728ea96c
parent e18e7426101c59d53f35e31377b4d40127bd6900
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 26 Jan 2021 18:50:44 -0800

Fix proxy redirect bug

Diffstat:
Mproxy.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/proxy.go b/proxy.go @@ -73,6 +73,7 @@ func proxyGemini(w http.ResponseWriter, r *http.Request) { } next.Host = r.URL.Host next.Scheme = r.URL.Scheme + next.Path = fmt.Sprintf("/%s/%s", req.URL.Host, next) w.Header().Add("Location", next.String()) w.WriteHeader(http.StatusFound) w.Write([]byte("Redirecting to " + next.String()))