diff options
Diffstat (limited to 'test/handlers/loop_handler_body_h.erl')
-rw-r--r-- | test/handlers/loop_handler_body_h.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/handlers/loop_handler_body_h.erl b/test/handlers/loop_handler_body_h.erl index 0d4fd4d..38ba2c0 100644 --- a/test/handlers/loop_handler_body_h.erl +++ b/test/handlers/loop_handler_body_h.erl @@ -14,9 +14,10 @@ init(Req, _) -> {cowboy_loop, Req, undefined, 5000, hibernate}. info(timeout, Req, State) -> - {ok, Body, Req2} = cowboy_req:body(Req), + {ok, Body, Req2} = cowboy_req:read_body(Req), 100000 = byte_size(Body), - {stop, cowboy_req:reply(200, Req2), State}. + cowboy_req:reply(200, Req2), + {stop, Req, State}. terminate(stop, _, _) -> ok. |