mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: encode HttpEntity with UTF-8
parent
73835701a6
commit
3d2c04c7de
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue