diff options
author | Loïc Hoguin <[email protected]> | 2017-02-05 20:45:36 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-02-05 20:45:36 +0100 |
commit | 80f8cda7ff8fe6a575b4c2eaedd8451acf4fcef3 (patch) | |
tree | b274c28aa95320dada46df723d11d93db4a7a9c0 /src/cowboy_http2.erl | |
parent | 1504c60c899114ce25f5b17d78168f03258df20f (diff) | |
download | cowboy-80f8cda7ff8fe6a575b4c2eaedd8451acf4fcef3.tar.gz cowboy-80f8cda7ff8fe6a575b4c2eaedd8451acf4fcef3.tar.bz2 cowboy-80f8cda7ff8fe6a575b4c2eaedd8451acf4fcef3.zip |
Remove or fix a small number of todo comments
One had the todo text fixed, another had the task to do done.
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r-- | src/cowboy_http2.erl | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl index e816c93..eed2d6b 100644 --- a/src/cowboy_http2.erl +++ b/src/cowboy_http2.erl @@ -36,9 +36,6 @@ -type stream() :: #stream{}. -%% @todo priority: if we receive a message for a stream, do a selective receive -%% to get all messages in the mailbox and prioritize them. (later) - -record(state, { parent = undefined :: pid(), ref :: ranch:ref(), @@ -569,7 +566,7 @@ stream_init(State0=#state{ref=Ref, socket=Socket, transport=Transport, peer=Peer cow_http_hd:parse_content_length(BinLength) catch _:_ -> terminate(State0, {stream_error, StreamID, protocol_error, - ''}) %% @todo + 'The content-length header is invalid. (RFC7230 3.3.2)'}) %% @todo Err should terminate here... end, Length; @@ -591,12 +588,8 @@ stream_init(State0=#state{ref=Ref, socket=Socket, transport=Transport, peer=Peer qs => Qs, version => 'HTTP/2', headers => Headers, - has_body => IsFin =:= nofin, body_length => BodyLength - %% @todo multipart? keep state separate - - %% meta values (cowboy_websocket, cowboy_rest) }, stream_handler_init(State, StreamID, IsFin, Req); {_, DecodeState} -> |