From 775af78cc6c8ebe9e258b81dd9442bbe6b8b36d4 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 3 Dec 2023 00:38:56 +0700 Subject: all: write the output as is when sending with server-sent events Previously, if the command output is "line1\n\nline2\n", the web output it as line1 line2 it should be line1 line2 This fix the empty line not displayed in wui output. --- testdata/http_server/execute/local_test.data | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testdata/http_server') diff --git a/testdata/http_server/execute/local_test.data b/testdata/http_server/execute/local_test.data index 4758a3c..ef2b478 100644 --- a/testdata/http_server/execute/local_test.data +++ b/testdata/http_server/execute/local_test.data @@ -25,26 +25,26 @@ event: open event: begin -data: 2023-11-26T15:21:00Z +data: "2023-11-26T15:21:00Z" event: message -data: - === BEGIN: local /local.aww 1- +data: "- === BEGIN: local /local.aww 1-\n" id: 0 event: message -data: - --> 1: echo "test" +data: "- --> 1: echo \"test\"\n" id: 1 event: message -data: test +data: "test\n" id: 2 event: message -data: - === END: local /local.aww 1- +data: "- === END: local /local.aww 1-\n" id: 3 event: end -data: 2023-11-26T15:21:00Z +data: "2023-11-26T15:21:00Z" id: 3 -- cgit v1.3