Skip to content

Commit

Permalink
Corrected if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 committed Nov 26, 2024
1 parent fc94fab commit d6be44e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class FinagleHttpClientConfiguration {
@Bean(name = Array("finagleClient"))
def createFinagle(sslFactory: SSLFactory): Service[Request, Response] = {
val uri = new URI(Constants.getServerUrl)
var client = Http.client.withNoHttp2
var client = Http.client

if (uri.getScheme == "https") {
if ("https".equals(uri.getScheme)) {
val sslClientConfiguration = SslClientConfiguration(
keyCredentials = OptionConverters.toScala(sslFactory.getKeyManagerFactory)
.map(kmf => KeyCredentials.KeyManagerFactory(kmf))
Expand Down

0 comments on commit d6be44e

Please sign in to comment.