0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-20 20:10:08 +00:00

dont strip newlines when forwarding FUNCTION_PAYLOAD ()

dont strip newlines when forwarding function payload
This commit is contained in:
Timotej S 2023-10-04 11:46:29 +02:00 committed by GitHub
parent 8cc904db1e
commit 3b05ef24a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;