openvidu-java-client: encode HttpEntity with UTF-8

pull/621/head
pabloFuente 2021-04-15 13:20:43 +02:00
parent 73835701a6
commit 3d2c04c7de
1 changed files with 1 additions and 5 deletions

View File

@ -200,11 +200,7 @@ public class OpenVidu {
json.addProperty("session", sessionId);
StringEntity params = null;
try {
params = new StringEntity(json.toString());
} catch (UnsupportedEncodingException e1) {
throw new OpenViduJavaClientException(e1.getMessage(), e1.getCause());
}
params = new StringEntity(json.toString(), "UTF-8");
request.setHeader(HttpHeaders.CONTENT_TYPE, "application/json");
request.setEntity(params);