mirror of https://github.com/OpenVidu/openvidu.git
Revert UTF-8 format
parent
59e90106b6
commit
9b9af1dae5
|
@ -149,13 +149,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");
|
||||
}
|
||||
params = new StringEntity(jsonEvent.toString(), "UTF-8");
|
||||
|
||||
for (Header header : this.customHeaders) {
|
||||
request.setHeader(header);
|
||||
|
|
Loading…
Reference in New Issue