Skip to content

Commit

Permalink
[Java][client][resteasy] Not possible to send payloads on DELETE requ…
Browse files Browse the repository at this point in the history
…ests

Fixes #3719
  • Loading branch information
jmini committed Aug 21, 2019
1 parent 354b62b commit 2bb9395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ public class ApiClient {
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public <T> T invokeAPI(String path, String method, List<Pair> queryParams, Objec
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
Expand Down

0 comments on commit 2bb9395

Please # to comment.