aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_req.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index 539d961..5d12304 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -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} ->