We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6367913 commit 841660bCopy full SHA for 841660b
build-logic/src/main/kotlin/com/osmerion/build/Download.kt
@@ -55,7 +55,9 @@ abstract class Download : DefaultTask() {
55
56
@TaskAction
57
protected fun download() {
58
- val httpClient = HttpClient.newHttpClient()
+ val httpClient = HttpClient.newBuilder()
59
+ .followRedirects(HttpClient.Redirect.NORMAL)
60
+ .build()
61
62
val request = HttpRequest.newBuilder()
63
.uri(URI.create(src.get()))
0 commit comments