From ddb0c4f3b6385ee2ef85d237498e3450bec9169b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 12 Jul 2017 19:40:52 +0200 Subject: Fix a few of the older tests --- test/http_SUITE_data/http_echo_body.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/http_SUITE_data/http_echo_body.erl b/test/http_SUITE_data/http_echo_body.erl index a541a67..d803108 100644 --- a/test/http_SUITE_data/http_echo_body.erl +++ b/test/http_SUITE_data/http_echo_body.erl @@ -6,7 +6,7 @@ init(Req, Opts) -> true = cowboy_req:has_body(Req), - Req3 = case cowboy_req:read_body(Req, [{length, 1000000}]) of + Req3 = case cowboy_req:read_body(Req, #{length => 1000000}) of {ok, Body, Req2} -> handle_body(Req2, Body); {more, _, Req2} -> handle_badlength(Req2) end, -- cgit v1.2.3