aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-20 11:28:22 +0100
committerLoïc Hoguin <[email protected]>2017-11-20 11:28:22 +0100
commitecb2a735efc9837774eb18d491781d21c582dd5e (patch)
tree05b64a4c90875fc96a246e9df01c2c1c728c4bae /src
parent62bf505d33199e40c7db4ed76417b5651ddc1df3 (diff)
downloadcowboy-ecb2a735efc9837774eb18d491781d21c582dd5e.tar.gz
cowboy-ecb2a735efc9837774eb18d491781d21c582dd5e.tar.bz2
cowboy-ecb2a735efc9837774eb18d491781d21c582dd5e.zip
Remove a useless todo
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 0c13ded..246afbb 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -732,12 +732,10 @@ parse_body(Buffer, State=#state{in_streamid=StreamID, in_state=
%% @todo Asks for 0 or more bytes.
{data, StreamID, nofin, Data, State#state{in_state=
PS#ps_body{transfer_decode_state=TState}}, Rest};
- %% @todo We probably want to confirm that the total length
- %% is the same as the content-length, if one was provided.
- {done, _TotalLength, Rest} ->
+ {done, _HasTrailers, Rest} ->
{data, StreamID, fin, <<>>, set_timeout(
State#state{in_streamid=StreamID + 1, in_state=#ps_request_line{}}), Rest};
- {done, Data, _TotalLength, Rest} ->
+ {done, Data, _HasTrailers, Rest} ->
{data, StreamID, fin, Data, set_timeout(
State#state{in_streamid=StreamID + 1, in_state=#ps_request_line{}}), Rest}
end.