1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Small fix to redirector

This commit is contained in:
Andrey Nering 2019-03-23 17:48:18 -03:00
parent 1ee066ec42
commit e81e2802f0

View File

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