diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-03 00:38:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-04 00:20:30 +0700 |
| commit | 775af78cc6c8ebe9e258b81dd9442bbe6b8b36d4 (patch) | |
| tree | 32a0b89c46840225a20532bd2e14151ef7c46250 /testdata/http_server/execute | |
| parent | 6300f75d5ed37059f79d52b6f3340f6643df33cf (diff) | |
| download | awwan-775af78cc6c8ebe9e258b81dd9442bbe6b8b36d4.tar.xz | |
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.
Diffstat (limited to 'testdata/http_server/execute')
| -rw-r--r-- | testdata/http_server/execute/local_test.data | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
