Browse Source

Remove an unnecessary clause in cowboy_req:body/2

Loïc Hoguin 11 years ago
parent
commit
a0205779fe
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/cowboy_req.erl

+ 0 - 7
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} ->