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);
|
||||
|
||||
StringEntity params = null;
|
||||
try {
|
||||
JsonObject jsonEvent = event.toJson();
|
||||
jsonEvent.addProperty("event", event.getEventName().name());
|
||||
params = new StringEntity(jsonEvent.toString());
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
log.error("Cannot create StringEntity from JSON CDREvent. Default HTTP charset is not supported");
|
||||
}
|
||||
JsonObject jsonEvent = event.toJson();
|
||||
jsonEvent.addProperty("event", event.getEventName().name());
|
||||
params = new StringEntity(jsonEvent.toString(), "UTF-8");
|
||||
|
||||
for (Header header : this.customHeaders) {
|
||||
request.setHeader(header);
|
||||
|
|
Loading…
Reference in New Issue