diff options
author | Loïc Hoguin <[email protected]> | 2013-11-09 18:08:54 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-11-09 18:08:54 +0100 |
commit | a0205779fe98002f9deebaef446067dc29e2deb9 (patch) | |
tree | 8bd9d054f5af48221ba9ceb45e1688db0b0a0a9e | |
parent | ff4871a9c91bfe1cbe044deb4c08593ed137a914 (diff) | |
download | cowboy-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.erl | 7 |
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} -> |