mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: encode with UTF-8 webhook HttpEntities
parent
570056426c
commit
3440d20977
|
@ -130,13 +130,9 @@ public class HttpWebhookSender {
|
||||||
HttpPost request = new HttpPost(httpEndpoint);
|
HttpPost request = new HttpPost(httpEndpoint);
|
||||||
|
|
||||||
StringEntity params = null;
|
StringEntity params = null;
|
||||||
try {
|
|
||||||
JsonObject jsonEvent = event.toJson();
|
JsonObject jsonEvent = event.toJson();
|
||||||
jsonEvent.addProperty("event", event.getEventName().name());
|
jsonEvent.addProperty("event", event.getEventName().name());
|
||||||
params = new StringEntity(jsonEvent.toString());
|
params = new StringEntity(jsonEvent.toString(), "UTF-8");
|
||||||
} catch (UnsupportedEncodingException e) {
|
|
||||||
log.error("Cannot create StringEntity from JSON CDREvent. Default HTTP charset is not supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (Header header : this.customHeaders) {
|
for (Header header : this.customHeaders) {
|
||||||
request.setHeader(header);
|
request.setHeader(header);
|
||||||
|
|
Loading…
Reference in New Issue