mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fix issue in event payload building
This commit is contained in:
parent
f790b13baa
commit
b15aaa9a3c
@ -186,6 +186,8 @@ public class HTTPEventAdapter implements OutputEventAdapter {
|
||||
String payload = message.toString();
|
||||
|
||||
if ("true".equals(dynamicProperties.get(HTTPEventAdapterConstants.ADAPTER_MESSAGE_URL_TEMPLATED))) {
|
||||
contentType = "application/json";
|
||||
payload = payload.replace("'", "\\\"");
|
||||
try {
|
||||
JSONParser jsonParser = new JSONParser();
|
||||
JSONObject jsonPayload = (JSONObject) jsonParser.parse(payload);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user