Skip to content

Commit

Permalink
kotlin goes brrr
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 7, 2024
1 parent 4b49284 commit 95051a4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ class AudioPlayerConfiguration {
serverConfig.timeouts?.let {
HttpClientTools.setDefaultRequestConfig(
RequestConfig.custom()
.setConnectTimeout(serverConfig.timeouts!!.connectTimeoutMs)
.setConnectionRequestTimeout(serverConfig.timeouts!!.connectionRequestTimeoutMs)
.setSocketTimeout(serverConfig.timeouts!!.socketTimeoutMs)
.setConnectTimeout(it.connectTimeoutMs)
.setConnectionRequestTimeout(it.connectionRequestTimeoutMs)
.setSocketTimeout(it.socketTimeoutMs)
.setCookieSpec(CookieSpecs.STANDARD)
.build()
)

HttpClientTools.setNoCookiesRequestConfig(
RequestConfig.custom()
.setConnectTimeout(serverConfig.timeouts!!.connectTimeoutMs)
.setConnectionRequestTimeout(serverConfig.timeouts!!.connectionRequestTimeoutMs)
.setSocketTimeout(serverConfig.timeouts!!.socketTimeoutMs)
.setConnectTimeout(it.connectTimeoutMs)
.setConnectionRequestTimeout(it.connectionRequestTimeoutMs)
.setSocketTimeout(it.socketTimeoutMs)
.setCookieSpec(CookieSpecs.IGNORE_COOKIES)
.build()
)
Expand Down

0 comments on commit 95051a4

Please sign in to comment.