From f1b4b8809121a0c2510be3dff31d71e22cda13fc Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 20 Jun 2026 20:39:34 -0600 Subject: [PATCH] REDIR --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index ae4d1e6..346d30b 100644 --- a/main.go +++ b/main.go @@ -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 }