]> git.basschouten.com Git - openhab-addons.git/commitdiff
[unifi] Use createHttpClient (#14474)
authorlolodomo <lg.hc@free.fr>
Wed, 22 Feb 2023 16:22:31 +0000 (17:22 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 16:22:31 +0000 (17:22 +0100)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/UniFiThingHandlerFactory.java

index 032189c58877dfc882ee32d8eb9a01f90cc476a5..e07b8a151a33af57f19d897c02517c969a091c31 100644 (file)
@@ -50,9 +50,7 @@ public class UniFiThingHandlerFactory extends BaseThingHandlerFactory {
 
     @Activate
     public UniFiThingHandlerFactory(@Reference final HttpClientFactory httpClientFactory) {
-        // [wip] mgb: disabled due to missing common name attributes with certs
-        // this.httpClient = httpClientFactory.getCommonHttpClient();
-        httpClient = new HttpClient(new SslContextFactory.Client(true));
+        httpClient = httpClientFactory.createHttpClient(BINDING_ID, new SslContextFactory.Client(true));
         try {
             httpClient.start();
         } catch (final Exception e) {