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);
|
json.addProperty("session", sessionId);
|
||||||
|
|
||||||
StringEntity params = null;
|
StringEntity params = null;
|
||||||
try {
|
params = new StringEntity(json.toString(), "UTF-8");
|
||||||
params = new StringEntity(json.toString());
|
|
||||||
} catch (UnsupportedEncodingException e1) {
|
|
||||||
throw new OpenViduJavaClientException(e1.getMessage(), e1.getCause());
|
|
||||||
}
|
|
||||||
|
|
||||||
request.setHeader(HttpHeaders.CONTENT_TYPE, "application/json");
|
request.setHeader(HttpHeaders.CONTENT_TYPE, "application/json");
|
||||||
request.setEntity(params);
|
request.setEntity(params);
|
||||||
|
|
Loading…
Reference in New Issue