Skip to content

Commit 38d6e5f

Browse files
committed
fix a bug where the last event was not sent correctly with json sse
1 parent 1d0ca94 commit 38d6e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl<W: std::io::Write> JsonBodyRenderer<W> {
393393
writer,
394394
is_first: true,
395395
prefix: b"data: ",
396-
suffix: b"",
396+
suffix: b"\n\n",
397397
separator: b"\n\ndata: ",
398398
};
399399
renderer.write_prefix().unwrap();

0 commit comments

Comments
 (0)