aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-11-09 18:08:54 +0100
committerLoïc Hoguin <[email protected]>2013-11-09 18:08:54 +0100
commita0205779fe98002f9deebaef446067dc29e2deb9 (patch)
tree8bd9d054f5af48221ba9ceb45e1688db0b0a0a9e
parentff4871a9c91bfe1cbe044deb4c08593ed137a914 (diff)
downloadcowboy-a0205779fe98002f9deebaef446067dc29e2deb9.tar.gz
cowboy-a0205779fe98002f9deebaef446067dc29e2deb9.tar.bz2
cowboy-a0205779fe98002f9deebaef446067dc29e2deb9.zip
Remove an unnecessary clause in cowboy_req:body/2
-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} ->