We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b6471c + 6d1f451 commit 7e1724bCopy full SHA for 7e1724b
1 file changed
auth0/src/main/java/com/auth0/request/internal/BaseRequest.java
@@ -98,7 +98,11 @@ protected ObjectReader getReader() {
98
}
99
100
protected RequestBody buildBody() throws RequestBodyBuildException {
101
- return JsonRequestBodyBuilder.createBody(builder.asDictionary(), writer);
+ Map<String, Object> dictionary = builder.asDictionary();
102
+ if (!dictionary.isEmpty()) {
103
+ return JsonRequestBodyBuilder.createBody(dictionary, writer);
104
+ }
105
+ return null;
106
107
108
protected APIException parseUnsuccessfulResponse(Response response) {
0 commit comments