Skip to content

Commit

Permalink
Fix issue with incorrect charset used for serialization (#942)
Browse files Browse the repository at this point in the history
Fix issue with charset used for serialization
  • Loading branch information
arvindkrishnakumar-okta authored Aug 21, 2023
1 parent f88aef3 commit 6ee0818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/resources/custom_templates/ApiClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>
String mimeType = contentType.getMimeType();
if (isJsonMime(mimeType)) {
try {
return new StringEntity(objectMapper.writeValueAsString(obj), contentType);
return new StringEntity(objectMapper.writeValueAsString(obj), ContentType.APPLICATION_JSON);
} catch (JsonProcessingException e) {
throw new ApiException(e);
}
Expand Down

0 comments on commit 6ee0818

Please sign in to comment.