aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/http_chunked.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE_data/http_chunked.erl')
-rw-r--r--test/http_SUITE_data/http_chunked.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/http_SUITE_data/http_chunked.erl b/test/http_SUITE_data/http_chunked.erl
index 87a6852..6433f66 100644
--- a/test/http_SUITE_data/http_chunked.erl
+++ b/test/http_SUITE_data/http_chunked.erl
@@ -6,6 +6,8 @@
init(Req, Opts) ->
Req2 = cowboy_req:chunked_reply(200, Req),
+ %% Try an empty chunk to make sure the stream doesn't get closed.
+ cowboy_req:chunk([<<>>], Req2),
timer:sleep(100),
cowboy_req:chunk("chunked_handler\r\n", Req2),
timer:sleep(100),