Export auditlogging package & fix server address prefix check
[simantics/platform.git] / bundles / org.simantics.auditlogging / src / org / simantics / audit / client / AuditLoggingAPIClient.java
index 645a6065749911ff9bcbf222e9246e1b6430eb79..6f0ca1fd37ec89404d0912f7a78eabfef53a3270 100644 (file)
@@ -34,7 +34,7 @@ public class AuditLoggingAPIClient {
         ClientConfig configuration = new ClientConfig();
         configuration.register(JacksonFeature.class);
         httpClient = ClientBuilder.newClient(configuration);
-        if (!serverAddress.startsWith("http://")) {
+        if (!serverAddress.startsWith("http://") && !serverAddress.startsWith("https://")) {
             serverAddress = "http://" + serverAddress;
         }
         base = httpClient.target(serverAddress);