Skip to content

Commit

Permalink
fix: fix license apis#1258 (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Apr 29, 2022
1 parent e2c67ec commit 14c6a2b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Singleton
Expand Down Expand Up @@ -142,10 +144,10 @@ public LicenseApiResponse activateLicense(LicenseRequest licenseRequest) {
Invocation.Builder request = ClientFactory.instance().getClientBuilder(activateLicenseUrl);
request.headers(headers);

MultivaluedMap<String, String> body = new MultivaluedHashMap<>();
body.putSingle("license_key", licenseRequest.getLicenseKey());
body.putSingle("hardware_id", licenseConfiguration.getHardwareId());
body.putSingle("product", licenseConfiguration.getProductCode());
Map<String, String> body = new HashMap<>();
body.put("license_key", licenseRequest.getLicenseKey());
body.put("hardware_id", licenseConfiguration.getHardwareId());
body.put("product", licenseConfiguration.getProductCode());

Response response = request
.post(Entity.entity(body, MediaType.APPLICATION_JSON));
Expand Down

0 comments on commit 14c6a2b

Please sign in to comment.