0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Remove deprecated body reading interface

This commit is contained in:
Loïc Hoguin 2014-07-12 15:42:45 +02:00
parent ecbebeefe8
commit 9980348a1c
2 changed files with 1 additions and 53 deletions

View file

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