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:
parent
ecbebeefe8
commit
9980348a1c
2 changed files with 1 additions and 53 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue