Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Send data with content-type json
Browse files Browse the repository at this point in the history
  • Loading branch information
UBaggeler committed Jul 6, 2021
1 parent 789d5ef commit e317101
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private VerificationResponse verify(HCertPayload hCertPayload) {
hCert = objectMapper.writeValueAsString(hCertPayload);
final var request =
HttpRequest.newBuilder(new URI(baseurl + verifyEndpoint))
.header("Content-Type", "application/json")
.POST(BodyPublishers.ofString(hCert))
.build();
final HttpResponse<String> response = httpClient.send(request, BodyHandlers.ofString());
Expand Down

0 comments on commit e317101

Please sign in to comment.