Skip to content

Commit

Permalink
Created empty requestBody to solve the issue - "POST has no body"
Browse files Browse the repository at this point in the history
Reviewed By: svcscm

Differential Revision: D2931739

fb-gh-sync-id: 04b6f59c257a35e4638c4c8f00bbffb34666145f
shipit-source-id: 04b6f59c257a35e4638c4c8f00bbffb34666145f
  • Loading branch information
Sreejumon authored and facebook-github-bot-7 committed Feb 12, 2016
1 parent 84f51da commit a7521a2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ public void sendRequest(
requestBuilder.method(method, multipartBuilder.build());
} else {
// Nothing in data payload, at least nothing we could understand anyway.
// Ignore and treat it as if it were null.
requestBuilder.method(method, null);
requestBuilder.method(method, RequestBodyUtil.getEmptyBody(method));
}

client.newCall(requestBuilder.build()).enqueue(
Expand Down

0 comments on commit a7521a2

Please sign in to comment.