Skip to content

Commit

Permalink
support more hoster
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Jul 10, 2024
1 parent f3dfb29 commit aa8d075
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ actual object PlatformModule {
}
bindSingleton<HttpClient> {
HttpClient(OkHttp) {
followRedirects = true
engine {
config {
followRedirects(true)
followSslRedirects(true)
connectTimeout(3, TimeUnit.MINUTES)
readTimeout(3, TimeUnit.MINUTES)
writeTimeout(3, TimeUnit.MINUTES)
Expand All @@ -84,11 +86,7 @@ actual object PlatformModule {
}
bindSingleton<HttpClient>("STREAM_CLIENT") {
HttpClient(OkHttp) {
engine {
config {
followRedirects(true)
}
}
followRedirects = true
}
}
bindSingleton<DataStore<AppSettings>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ actual object PlatformModule {
}
bindSingleton<HttpClient> {
HttpClient(OkHttp) {
followRedirects = true
engine {
config {
followRedirects(true)
followSslRedirects(true)
connectTimeout(3, TimeUnit.MINUTES)
readTimeout(3, TimeUnit.MINUTES)
writeTimeout(3, TimeUnit.MINUTES)
Expand All @@ -90,11 +92,7 @@ actual object PlatformModule {
}
bindSingleton<HttpClient>("STREAM_CLIENT") {
HttpClient(OkHttp) {
engine {
config {
followRedirects(true)
}
}
followRedirects = true
}
}
bindSingleton<DataStore<AppSettings>> {
Expand Down

0 comments on commit aa8d075

Please sign in to comment.