From d6be44eef16b89ba2da55a7d09b5d642d2e0df98 Mon Sep 17 00:00:00 2001 From: Hakky54 Date: Wed, 27 Nov 2024 00:00:01 +0100 Subject: [PATCH] Corrected if statement --- .../nl/altindag/client/service/FinagleHttpClientService.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala b/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala index 6a4ba67..907335a 100644 --- a/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala +++ b/client/src/main/java/nl/altindag/client/service/FinagleHttpClientService.scala @@ -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))