aboutsummaryrefslogtreecommitdiffstats
path: root/examples/chunked_hello_world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chunked_hello_world')
-rw-r--r--examples/chunked_hello_world/src/toppage_handler.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/chunked_hello_world/src/toppage_handler.erl b/examples/chunked_hello_world/src/toppage_handler.erl
index b6f2d04..4e6b4e4 100644
--- a/examples/chunked_hello_world/src/toppage_handler.erl
+++ b/examples/chunked_hello_world/src/toppage_handler.erl
@@ -11,12 +11,12 @@ init(_Transport, Req, []) ->
{ok, Req, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_req:chunked_reply(200, Req),
- ok = cowboy_req:chunk("Hello\r\n", Req2),
- ok = timer:sleep(1000),
- ok = cowboy_req:chunk("World\r\n", Req2),
- ok = timer:sleep(1000),
- ok = cowboy_req:chunk("Chunked!\r\n", Req2),
+ Req2 = cowboy_req:chunked_reply(200, Req),
+ cowboy_req:chunk("Hello\r\n", Req2),
+ timer:sleep(1000),
+ cowboy_req:chunk("World\r\n", Req2),
+ timer:sleep(1000),
+ cowboy_req:chunk("Chunked!\r\n", Req2),
{ok, Req2, State}.
terminate(_Reason, _Req, _State) ->