This commit is contained in:
bel
2026-06-20 20:39:34 -06:00
parent 96052b786d
commit f1b4b88091
+3
View File
@@ -40,6 +40,9 @@ func (c Config) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if endpoint.Redir {
u, _ := url.Parse(endpoint.To)
r.URL = u
r.Host = u.Host
http.Redirect(w, r, r.URL.String(), http.StatusSeeOther)
return
}