Skip to content

Commit

Permalink
Remove port from hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Nov 10, 2023
1 parent b8ec1f3 commit ca0afae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ object ApiClient {
.writeTimeout(REQUEST_TIMEOUT.toLong(), TimeUnit.SECONDS)

val hostName =
sharedPreferencesHolder.remoteUrl.removePrefix(HTTP_PREFIX).removePrefix(HTTPS_PREFIX).removeSuffix("/")
sharedPreferencesHolder.remoteUrl.removePrefix(HTTP_PREFIX).removePrefix(HTTPS_PREFIX).removeSuffix("/").substringBefore(":")

val clientCertificates = HandshakeCertificates.Builder()
.addPlatformTrustedCertificates()
Expand Down

0 comments on commit ca0afae

Please sign in to comment.