aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-08-26 17:34:56 +0200
committerLoïc Hoguin <[email protected]>2020-09-21 15:51:58 +0200
commit839f31e97504e10b8eef4897aa1271a53137cc29 (patch)
tree3d478b8914d412b0156d5fc630b8435ed174266a /src/gun_http2.erl
parent35d9f47fbcff23395c256b7814ce6af1d85129a2 (diff)
downloadgun-839f31e97504e10b8eef4897aa1271a53137cc29.tar.gz
gun-839f31e97504e10b8eef4897aa1271a53137cc29.tar.bz2
gun-839f31e97504e10b8eef4897aa1271a53137cc29.zip
Add more HTTP/2 CONNECT tests
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 6863b84..3687946 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -875,6 +875,7 @@ request(State0=#http2_state{socket=Socket, transport=Transport, opts=Opts,
request(State, [StreamRef|Tail], ReplyTo, Method, _Host, _Port,
Path, Headers, Body, InitialFlow, EvHandler, EvHandlerState0) ->
case get_stream_by_ref(State, StreamRef) of
+ %% @todo We should send an error to the user if the stream isn't ready.
Stream=#stream{tunnel={Proto, ProtoState0, TunnelInfo=#{
origin_host := OriginHost, origin_port := OriginPort}}} ->
%% @todo So the event is probably not giving the right StreamRef?