Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/br/com/totalvoice/TotalVoiceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ public JSONObject get(RequestInterface request) throws Exception {
@Override
public JSONObject post(RequestInterface request, JSONObject data) throws Exception {
HttpPost post = new HttpPost(baseUrl + request.getURL());
post.setEntity(new StringEntity(data.toString()));
post.setEntity(new StringEntity(data.toString(), "UTF-8"));
return execute(post);
}

@Override
public JSONObject put(RequestInterface request, JSONObject data) throws Exception {
HttpPut put = new HttpPut(baseUrl + request.getURL());
put.setEntity(new StringEntity(data.toString()));
put.setEntity(new StringEntity(data.toString(), "UTF-8"));
return execute(put);
}

Expand Down