mirror of
https://github.com/netdata/netdata.git
synced 2025-04-20 03:56:20 +00:00
dont strip newlines when forwarding FUNCTION_PAYLOAD (#16120)
dont strip newlines when forwarding function payload
This commit is contained in:
parent
8cc904db1e
commit
3b05ef24a9
1 changed files with 2 additions and 0 deletions
|
@ -956,6 +956,8 @@ void execute_commands(struct sender_state *s) {
|
|||
*newline = '\0';
|
||||
|
||||
if (s->receiving_function_payload && unlikely(strcmp(start, PLUGINSD_KEYWORD_FUNCTION_PAYLOAD_END) != 0)) {
|
||||
if (buffer_strlen(s->function_payload.payload) != 0)
|
||||
buffer_strcat(s->function_payload.payload, "\n");
|
||||
buffer_strcat(s->function_payload.payload, start);
|
||||
start = newline + 1;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue