Skip to content

Commit

Permalink
Fixed end boundare for incremental results
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Sep 25, 2020
1 parent 689c52b commit 2419fa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
@@ -1,5 +1,5 @@
{
"ContentType": "multipart/mixed; boundary=\"-\"",
"StatusCode": "OK",
"Content": "---\nContent-Type: application/json; charset=utf-8\nContent-Length: 49\n\n{\"data\":{\"hero\":{\"name\":\"R2-D2\"}},\"hasNext\":true}\n\n---\nContent-Type: application/json; charset=utf-8\nContent-Length: 70\n\n{\"label\":\"my_id\",\"path\":[\"hero\"],\"data\":{\"id\":\"2001\"},\"hasNext\":false}\n\n----\n"
"Content": "---\nContent-Type: application/json; charset=utf-8\nContent-Length: 49\n\n{\"data\":{\"hero\":{\"name\":\"R2-D2\"}},\"hasNext\":true}\n\n---\nContent-Type: application/json; charset=utf-8\nContent-Length: 70\n\n{\"label\":\"my_id\",\"path\":[\"hero\"],\"data\":{\"id\":\"2001\"},\"hasNext\":false}\n\n-----\n"
}
Expand Up @@ -22,7 +22,10 @@ public sealed partial class MultiPartResponseStreamSerializer

private static byte[] Start { get; } = { (byte)'-', (byte)'-', (byte)'-'};

private static byte[] End { get; } = { (byte)'-', (byte)'-', (byte)'-', (byte)'-' };
private static byte[] End { get; } =
{
(byte)'-', (byte)'-', (byte)'-', (byte)'-', (byte)'-'
};

private static byte[] CrLf { get; } = { (byte)'\r',(byte)'\n' };
}
Expand Down
Expand Up @@ -28,4 +28,4 @@ Content-Length: 86

{"path":["hero","friends","nodes",0],"data":{"name":"Luke Skywalker"},"hasNext":false}

----
-----

0 comments on commit 2419fa0

Please sign in to comment.