aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-07-12 19:40:52 +0200
committerLoïc Hoguin <[email protected]>2017-07-12 19:40:52 +0200
commitddb0c4f3b6385ee2ef85d237498e3450bec9169b (patch)
tree25924d7e26d0a92189ade0bc37e2383a153497f2 /test
parentcf4d8166f80007fc665972daf724ce7ee9ba71c6 (diff)
downloadcowboy-ddb0c4f3b6385ee2ef85d237498e3450bec9169b.tar.gz
cowboy-ddb0c4f3b6385ee2ef85d237498e3450bec9169b.tar.bz2
cowboy-ddb0c4f3b6385ee2ef85d237498e3450bec9169b.zip
Fix a few of the older tests
Diffstat (limited to 'test')
-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 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,