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);
|
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(), "UTF-8");
|
||||||
params = new StringEntity(jsonEvent.toString());
|
|
||||||
} 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