all repos — flounder @ aa3a622afdb7e9d30b464b78cc40d0aa728ea96c

A small site builder for the Gemini protocol

Fix proxy redirect bug
alex wennerberg alex@alexwennerberg.com
Tue, 26 Jan 2021 18:50:44 -0800
commit

aa3a622afdb7e9d30b464b78cc40d0aa728ea96c

parent

e18e7426101c59d53f35e31377b4d40127bd6900

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

jump to
M proxy.goproxy.go

@@ -73,6 +73,7 @@ return

} 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()))