Skip to content

Commit

Permalink
fix redirect issue (#4)
Browse files Browse the repository at this point in the history
* fix redirect issue

* bump version
  • Loading branch information
jpwiedekopf authored Sep 7, 2021
1 parent a30a673 commit fe4935f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ application {
}

group = "de.uzl.itcr"
version = "1.0.0"
version = "1.0.1"
java.sourceCompatibility = JavaVersion.VERSION_11

repositories {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/de/uzl/itcr/termicron/StaticHelpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class StaticHelpers {
fun httpClient(initializer: (HttpClient.Builder.() -> Unit)? = null): HttpClient =
HttpClient.newBuilder().apply {
version(HttpClient.Version.HTTP_1_1)
followRedirects(HttpClient.Redirect.ALWAYS)
initializer?.invoke(this)
}
.connectTimeout(Duration.ofSeconds(20))
Expand Down

0 comments on commit fe4935f

Please sign in to comment.