Skip to content

Commit 841660b

Browse files
build: follow redirects when downloading Sqlite
1 parent 6367913 commit 841660b

File tree

1 file changed

+3
-1
lines changed
  • build-logic/src/main/kotlin/com/osmerion/build

1 file changed

+3
-1
lines changed

build-logic/src/main/kotlin/com/osmerion/build/Download.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ abstract class Download : DefaultTask() {
5555

5656
@TaskAction
5757
protected fun download() {
58-
val httpClient = HttpClient.newHttpClient()
58+
val httpClient = HttpClient.newBuilder()
59+
.followRedirects(HttpClient.Redirect.NORMAL)
60+
.build()
5961

6062
val request = HttpRequest.newBuilder()
6163
.uri(URI.create(src.get()))

0 commit comments

Comments
 (0)