From 9980348a1cd74a41b3024f0b01d6fef301d8288b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 12 Jul 2014 15:42:45 +0200 Subject: Remove deprecated body reading interface --- test/http_SUITE_data/http_echo_body.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/http_SUITE_data') 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, -- cgit v1.2.3