mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Remove an unnecessary clause in cowboy_req:body/2
This commit is contained in:
parent
ff4871a9c9
commit
a0205779fe
1 changed files with 0 additions and 7 deletions
|
@ -721,13 +721,6 @@ body(Req) ->
|
|||
%% @doc Return the body sent with the request.
|
||||
-spec body(non_neg_integer() | infinity, Req)
|
||||
-> {ok, binary(), Req} | {error, atom()} when Req::req().
|
||||
body(infinity, Req) ->
|
||||
case parse_header(<<"transfer-encoding">>, Req) of
|
||||
{ok, [<<"identity">>], Req2} ->
|
||||
read_body(Req2, <<>>);
|
||||
{ok, _, _} ->
|
||||
{error, chunked}
|
||||
end;
|
||||
body(MaxBodyLength, Req) ->
|
||||
case parse_header(<<"transfer-encoding">>, Req) of
|
||||
{ok, [<<"identity">>], Req2} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue