aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
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},