Skip to content

Commit e81e280

Browse files
committed
Small fix to redirector
1 parent 1ee066e commit e81e280

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd/redirector/redirector.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//+build ignore
2-
31
// This small web app is used to redirect from the old taskfile.org domain
42
// to the new taskfile.dev without breaking CIs that uses cURL to download
53
// "/install.sh" without the -L flag (which follow redirects).
@@ -19,9 +17,9 @@ func main() {
1917
return
2018
}
2119

22-
println("Redirecting to taskfile.dev")
20+
println("Redirecting to https://taskfile.dev" + r.URL.Path)
2321

24-
w.Header().Set("Location", "https://taskfile.dev")
22+
w.Header().Set("Location", "https://taskfile.dev"+r.URL.Path)
2523
w.WriteHeader(301)
2624
})
2725

0 commit comments

Comments
 (0)