From e81e2802f09344f9c6622b27fe49db4fe32ea55b Mon Sep 17 00:00:00 2001 From: Andrey Nering <andrey.nering@gmail.com> Date: Sat, 23 Mar 2019 17:48:18 -0300 Subject: [PATCH] Small fix to redirector --- cmd/redirector/redirector.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/redirector/redirector.go b/cmd/redirector/redirector.go index a2ddebdf..2aa6023a 100644 --- a/cmd/redirector/redirector.go +++ b/cmd/redirector/redirector.go @@ -1,5 +1,3 @@ -//+build ignore - // This small web app is used to redirect from the old taskfile.org domain // to the new taskfile.dev without breaking CIs that uses cURL to download // "/install.sh" without the -L flag (which follow redirects). @@ -19,9 +17,9 @@ func main() { return } - println("Redirecting to taskfile.dev") + println("Redirecting to https://taskfile.dev" + r.URL.Path) - w.Header().Set("Location", "https://taskfile.dev") + w.Header().Set("Location", "https://taskfile.dev"+r.URL.Path) w.WriteHeader(301) })