Skip to content

Commit

Permalink
fix the json param convert (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuT committed Dec 5, 2023
1 parent 10f0a87 commit dcf3752
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -127,6 +127,8 @@ private static RequestBody buildRequestBody(Object body, RestHeaders headers) {
if (RestHeaders.APPLICATION_JSON.equals(contentType)) {
if (body == null) {
bodyContent = "{}";
} else if (body instanceof String) {
bodyContent = (String) body;
} else {
bodyContent = JsonUtilCommon.toJson(body);
}
Expand Down

0 comments on commit dcf3752

Please sign in to comment.