0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix a few of the older tests

This commit is contained in:
Loïc Hoguin 2017-07-12 19:40:52 +02:00
parent cf4d8166f8
commit ddb0c4f3b6
No known key found for this signature in database
GPG key ID: 71366FF21851DF03

View file

@ -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,