Closed GabrielStetco closed 8 years ago
This topic seems to be related to this problem:
When changing the content of the response in an event script, you will need to set event.response.content_changed = true before it will get copied back to the main process stream. This was to prevent copying content unnecessarily when handling events.
Hi,
In the version 2.1.2 in the post_process custom script the "event.response.content" is not reflecting the data pushed to it.
This is how the issue can be replicated:
Push a record on the table. The expected result should be a 400 code response and {"test": "value"} as an output. Instead, the return code is modified correctly, but not the response.content, that will return always the original response.
Please advise. Best regards
Gabriel