Browse Source

Fix a few of the older tests

Loïc Hoguin 8 years ago
parent
commit
ddb0c4f3b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/http_SUITE_data/http_echo_body.erl

+ 1 - 1
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,