aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-11-12 12:28:46 +0100
committerLoïc Hoguin <[email protected]>2020-11-12 12:28:46 +0100
commit1ebad8acf803eb797a6c61f6522ebc3b79f104a1 (patch)
tree886ad0a176f067d90c6f2a85bb6e478ab5034d43 /src/gun_http2.erl
parented8979a130247492269de262ac599df4752b786d (diff)
downloadgun-1ebad8acf803eb797a6c61f6522ebc3b79f104a1.tar.gz
gun-1ebad8acf803eb797a6c61f6522ebc3b79f104a1.tar.bz2
gun-1ebad8acf803eb797a6c61f6522ebc3b79f104a1.zip
Review and remove many todos
HTTP/1.1 Upgrade to HTTP/2 will not be implemented. There are discussions for this functionality to be removed from the HTTP/2 spec. HTTP/1.1 Upgrade to TLS will most likely not be implemented.
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 04d4de5..07aec7e 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -182,7 +182,6 @@ init(ReplyTo, Socket, Transport, Opts0) ->
BaseStreamRef = maps:get(stream_ref, Opts, undefined),
TunnelTransport = maps:get(tunnel_transport, Opts, undefined),
{ok, Preface, HTTP2Machine} = cow_http2_machine:init(client, Opts#{message_tag => BaseStreamRef}),
- %% @todo Better validate the preface being received.
State = #http2_state{reply_to=ReplyTo, socket=Socket, transport=Transport,
opts=Opts, base_stream_ref=BaseStreamRef, tunnel_transport=TunnelTransport,
content_handlers=Handlers, http2_machine=HTTP2Machine},