Commit 08e87b7
committed
Fix JsonType.streamAsLines() for empty Stream
When the stream is empty, we still need to send some response body when used with an http server.
The fix for this is to always append a blank empty line to the content. Client consumers are expected to ignore empty content (filter empty lines).1 parent e4137d5 commit 08e87b7
File tree
2 files changed
+2
-1
lines changed- blackbox-test/src/test/java/org/example/customer/stream
- jsonb/src/main/java/io/avaje/jsonb/core
2 files changed
+2
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments