aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/http_echo_body.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-07-12 15:42:45 +0200
committerLoïc Hoguin <[email protected]>2014-07-12 15:42:45 +0200
commit9980348a1cd74a41b3024f0b01d6fef301d8288b (patch)
treee936c11c07c9fcf752f88ddaa48cccbd8b282db4 /test/http_SUITE_data/http_echo_body.erl
parentecbebeefe865a44558f4b30ea5cd1b438a1000de (diff)
downloadcowboy-9980348a1cd74a41b3024f0b01d6fef301d8288b.tar.gz
cowboy-9980348a1cd74a41b3024f0b01d6fef301d8288b.tar.bz2
cowboy-9980348a1cd74a41b3024f0b01d6fef301d8288b.zip
Remove deprecated body reading interface
Diffstat (limited to 'test/http_SUITE_data/http_echo_body.erl')
-rw-r--r--test/http_SUITE_data/http_echo_body.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE_data/http_echo_body.erl b/test/http_SUITE_data/http_echo_body.erl
index 4f2afb2..3334b95 100644
--- a/test/http_SUITE_data/http_echo_body.erl
+++ b/test/http_SUITE_data/http_echo_body.erl
@@ -9,7 +9,7 @@ init({_, http}, Req, _) ->
handle(Req, State) ->
true = cowboy_req:has_body(Req),
- {ok, Req3} = case cowboy_req:body(1000000, Req) of
+ {ok, Req3} = case cowboy_req:body(Req, [{length, 1000000}]) of
{ok, Body, Req2} -> handle_body(Req2, Body);
{more, _, Req2} -> handle_badlength(Req2)
end,